mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SE-0458] Disambiguate "unsafe" expression within string interpolation
String interpolation uses an end-of-file token, which we weren't checking for. Fixes rdar://146493296
This commit is contained in:
@@ -207,6 +207,8 @@ func moreUnsafeFunc(unsafe: [Int]) {
|
||||
// expected-warning@-1{{no unsafe operations occur within 'unsafe' expression}}
|
||||
|
||||
_ = unsafe[1]
|
||||
|
||||
_ = "\(unsafe)"
|
||||
}
|
||||
|
||||
func yetMoreUnsafeFunc(unsafe: () -> Void) {
|
||||
|
||||
Reference in New Issue
Block a user