blob: bf94b69705c3931f7c6d7e7b18f06579b502900a [file] [log] [blame]
// RUN: %target-swift-frontend %s -typecheck
struct S {
let foo = "bar"
}
let s: S? = S()
let str: String? = "hello world"
switch str {
case s?.foo?: ()
default: ()
}