File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -2406,14 +2406,9 @@ void ValueDecl::setInterfaceType(Type type) {
2406
2406
assert (!type->hasTypeVariable () && " Type variable in interface type" );
2407
2407
assert (!type->is <InOutType>() && " Interface type must be materializable" );
2408
2408
2409
- // lldb creates global typealiases with archetypes in them.
2410
- // FIXME: Add an isDebugAlias() flag, like isDebugVar().
2411
- //
2412
- // Also, ParamDecls in closure contexts can have type variables
2409
+ // ParamDecls in closure contexts can have type variables
2413
2410
// archetype in them during constraint generation.
2414
- if (!isa<TypeAliasDecl>(this ) &&
2415
- !(isa<ParamDecl>(this ) &&
2416
- isa<AbstractClosureExpr>(getDeclContext ()))) {
2411
+ if (!(isa<ParamDecl>(this ) && isa<AbstractClosureExpr>(getDeclContext ()))) {
2417
2412
assert (!type->hasArchetype () &&
2418
2413
" Archetype in interface type" );
2419
2414
}
You can’t perform that action at this time.
0 commit comments