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
Copy file name to clipboardExpand all lines: test/decl/var/properties.swift
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1306,3 +1306,8 @@ class SR_9267_C {
1306
1306
classSR_9267_C2{
1307
1307
letSR_9267_prop_3:Int={return0} // expected-error {{function produces expected type 'Int'; did you mean to call it with '()'?}} // expected-note {{Remove '=' to make 'SR_9267_prop_3' a computed property}}{{3-6=var}}{{27-29=}}
1308
1308
}
1309
+
1310
+
classLazyPropInClass{
1311
+
lazy varfoo:Int={return0} // expected-error {{function produces expected type 'Int'; did you mean to call it with '()'?}}
1312
+
// expected-note@-1 {{Remove '=' to make 'foo' a computed property}}{{21-23=}}{{3-8=}}
0 commit comments