Skip to content

Commit 1431b6f

Browse files
committed
Add regression test to close #44672
1 parent 967e3c7 commit 1431b6f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/Constraints/operator.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,3 +296,13 @@ postfix operator ^^^
296296
postfix func ^^^ (lhs: Int) -> Int! { 0 }
297297

298298
let x: Int = 1^^^
299+
300+
// https://github.com/apple/swift/issues/44672 - DiagnosticsQoI
301+
do {
302+
enum TestEnum: Int {
303+
case First, Second
304+
}
305+
306+
let number = 1
307+
let test = true || number == .First.rawValue // expected-error {{type 'Int' has no member 'First'}}
308+
}

0 commit comments

Comments
 (0)