blob: df9a797b416a9a7f365c91c38e8e8c5ffc8c8689 [file] [log] [blame]
// RUN: %target-swift-frontend -disable-availability-checking -emit-ir -o /dev/null %s
protocol MyProtocol {}
func doNotCrash1() -> some MyProtocol {
class MyClass1: MyProtocol {}
return MyClass1()
}
var doNotCrash2: some MyProtocol {
class MyClass2: MyProtocol {}
return MyClass2()
}