@@ -834,29 +834,31 @@ actor LazyActor {
834834 lazy var l25 : Int = { [ unowned self] in self . l } ( )
835835
836836 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 }}
838838 // expected-warning@-2 {{actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode}}
839839 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}}
841842 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 }}
843844 // expected-warning@-2 {{actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode}}
844845 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}}
846848 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 }}
848850 // expected-warning@-2 {{actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode}}
849851
850852 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 }}
852854 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 }}
854856 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 }}
856858 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 }}
858860 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 }}
860862}
861863
862864// Infer global actors from context only for instance members.
0 commit comments