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