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