@@ -834,21 +834,29 @@ actor LazyActor {
834
834
lazy var l25 : Int = { [ unowned self] in self . l } ( )
835
835
836
836
nonisolated lazy var l31 : Int = { v } ( )
837
- // expected-warning@-1 {{actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode}}
837
+ // expected-error@-1 {{'nonisolated' is not supported on lazy properties}}
838
+ // expected-warning@-2 {{actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode}}
838
839
nonisolated lazy var l32 : Int = v
839
- // expected-warning @-1 {{actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode }}
840
+ // expected-error @-1 {{' nonisolated' is not supported on lazy properties }}
840
841
nonisolated lazy var l33 : Int = { self . v } ( )
841
- // expected-warning@-1 {{actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode}}
842
+ // expected-error@-1 {{'nonisolated' is not supported on lazy properties}}
843
+ // expected-warning@-2 {{actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode}}
842
844
nonisolated lazy var l34 : Int = self . v
843
- // expected-warning @-1 {{actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode }}
845
+ // expected-error @-1 {{' nonisolated' is not supported on lazy properties }}
844
846
nonisolated lazy var l35 : Int = { [ unowned self] in self . v } ( )
845
- // expected-warning@-1 {{actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode}}
847
+ // expected-error@-1 {{'nonisolated' is not supported on lazy properties}}
848
+ // expected-warning@-2 {{actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode}}
846
849
847
850
nonisolated lazy var l41 : Int = { l } ( )
851
+ // expected-error@-1 {{'nonisolated' is not supported on lazy properties}}
848
852
nonisolated lazy var l42 : Int = l
853
+ // expected-error@-1 {{'nonisolated' is not supported on lazy properties}}
849
854
nonisolated lazy var l43 : Int = { self . l } ( )
855
+ // expected-error@-1 {{'nonisolated' is not supported on lazy properties}}
850
856
nonisolated lazy var l44 : Int = self . l
857
+ // expected-error@-1 {{'nonisolated' is not supported on lazy properties}}
851
858
nonisolated lazy var l45 : Int = { [ unowned self] in self . l } ( )
859
+ // expected-error@-1 {{'nonisolated' is not supported on lazy properties}}
852
860
}
853
861
854
862
// Infer global actors from context only for instance members.
0 commit comments