mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This might only come up in invalid code, but for example casting a function type to String would trigger it.
5 lines
93 B
Swift
5 lines
93 B
Swift
// RUN: %target-swift-frontend %s -emit-silgen
|
|
|
|
let a: () -> Int? = { return nil }
|
|
a as? Int
|