You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RequirementMachine: Fix crash-on-invalid with concrete type requirements involving packs
We would crash in some cases, or produce a slightly misleading
diagnostic about same-element requirements, which are related but
not quite the same.
In the fullness of time, we should figure out this corner of the
language. Until then, add a new diagnostic since this is really
about same-type requirements between concrete types and packs.
Fixes rdar://159790557.
Copy file name to clipboardExpand all lines: test/ASTGen/diagnostics.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ struct S {
44
44
}
45
45
46
46
structExpansionRequirementTest<eachT>{}
47
-
extensionExpansionRequirementTestwhererepeateachT==Int{} // expected-error {{same-element requirements are not yet supported}}
47
+
extensionExpansionRequirementTestwhererepeateachT==Int{} // expected-error {{same-type requirements between packs and concrete types are not yet supported}}
48
48
49
49
50
50
#warning("this is a warning") // expected-warning {{this is a warning}}
0 commit comments