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
// <rdar://problem/27671033> Crash when defining property inside an invalid extension
1137
+
publicprotocolrdar27671033P{}
1138
+
structrdar27671033S<Key, Value>{}
1139
+
extensionrdar27671033S:rdar27671033Pwhere Key ==String{ // expected-error {{extension of type 'rdar27671033S' with constraints cannot have an inheritance clause}}
1140
+
// expected-error@-1 {{same-type requirement makes generic parameter 'Key' non-generic}}
1141
+
letd=rdar27671033S<Int,Int>() // expected-error {{extensions may not contain stored properties}}
1142
+
}
1136
1143
1137
1144
// <rdar://problem/19874152> struct memberwise initializer violates new sanctity of previously set `let` property
0 commit comments