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