[SR-7898] [4.2 regression] can't use & to make UnsafeMutableRawPointer in switch case #50433
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 4.2
Additional Detail from JIRA
md5: e284e3cb4512c3c07b192745ad34e47c
duplicates:
Issue Description:
Consider the following program:
In the
swiftc
(in Swift 4 mode) that comes with Xcode 9.4, the program compiles and runs correctly.In the
swiftc
(in both Swift 4.1 and Swift 4.2 mode) that comes with Xcode 10 beta, the program fails to compile:The text was updated successfully, but these errors were encountered: