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
// expected-error@-1 {{no type for 'some Pair<Int, String>.X' can satisfy both 'some Pair<Int, String>.X == String' and 'some Pair<Int, String>.X == Int'}}
83
+
84
+
func typeExpr(){
85
+
_ = Sequence<Int>.self
86
+
// expected-error@-1 {{protocol type with type arguments can only be used as a generic constraint}}
87
+
88
+
_ = any Sequence<Int>.self
89
+
// expected-error@-1 {{'self' is not a member type of protocol 'parameterized_existential.Sequence<Swift.Int>'}}
90
+
91
+
_ =(anySequence<Int>).self
92
+
}
93
+
94
+
/// Not supported as a protocol composition term for now
0 commit comments