mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
13 lines
178 B
Swift
13 lines
178 B
Swift
// RUN: %target-swift-frontend %s -parse
|
|
|
|
struct A {
|
|
func a() -> String {
|
|
return ""
|
|
}
|
|
}
|
|
func b() {
|
|
guard let c = A.a as? String else {
|
|
return
|
|
}
|
|
}
|