Skip to content

Commit 21d657a

Browse files
committed
add expected note
1 parent 18d2cc5 commit 21d657a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/decl/var/properties.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,6 @@ class WeakFixItTest {
12701270

12711271
// SR-8811 (Warning)
12721272

1273-
let sr8811x = fatalError() // expected-warning {{variable 'sr8811x' inferred to have type 'Never', which may be unexpected}}
1273+
let sr8811x = fatalError() // expected-warning {{variable 'sr8811x' inferred to have type 'Never', which may be unexpected}} expected-note {{add an explicit type annotation to silence this warning}}
12741274

12751275
let sr8811y: Never = fatalError() // Ok

0 commit comments

Comments
 (0)