File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -13978,6 +13978,8 @@ ConstraintSystem::simplifyExplicitGenericArgumentsConstraint(
1397813978 decl = bound->getDecl();
1397913979 for (auto argType : bound->getDirectGenericArgs()) {
1398013980 auto *typeVar = argType->getAs<TypeVariableType>();
13981+ if (!typeVar)
13982+ return SolutionKind::Error;
1398113983 auto *genericParam = typeVar->getImpl().getGenericParameter();
1398213984 openedTypes.push_back({genericParam, typeVar});
1398313985 }
Original file line number Diff line number Diff line change 1+ // RUN: %target-typecheck-verify-swift
2+
3+ typealias Alias < T> = Int
4+
5+ func invalidSpecializeExpr( _ x: Alias < Int > . Type ) {
6+ let y = x< Int> . self
7+ // expected-error@-1 {{type of expression is ambiguous without a type annotation}}
8+ // FIXME: Bad diagnostic
9+ }
You can’t perform that action at this time.
0 commit comments