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 @@ -13980,6 +13980,8 @@ ConstraintSystem::simplifyExplicitGenericArgumentsConstraint(
13980
13980
decl = bound->getDecl();
13981
13981
for (auto argType : bound->getDirectGenericArgs()) {
13982
13982
auto *typeVar = argType->getAs<TypeVariableType>();
13983
+ if (!typeVar)
13984
+ return SolutionKind::Error;
13983
13985
auto *genericParam = typeVar->getImpl().getGenericParameter();
13984
13986
openedTypes.push_back({genericParam, typeVar});
13985
13987
}
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