We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff8c6e2 + 0381ae8 commit bd94891Copy full SHA for bd94891
test/NameBinding/name_lookup.swift
@@ -614,6 +614,7 @@ _ = ShadowingGenericParameter<String>().foo(t: "hi")
614
// rdar://problem/51266778
615
struct PatternBindingWithTwoVars1 { var x = 3, y = x }
616
// expected-error@-1 {{cannot use instance member 'x' within property initializer; property initializers run before 'self' is available}}
617
+// expected-error@-2 {{property 'x' references itself}}
618
619
struct PatternBindingWithTwoVars2 { var x = y, y = 3 }
620
// expected-error@-1 {{property 'y' references itself}}
0 commit comments