Files
swift-mirror/validation-test/compiler_crashers_2_fixed/sr13203.swift
Suyash Srijan 3502e07bf0 [Mangling] Add a new mangling for opaque return type to use when mangling an ObjC runtime name (#33035)
* [Mangling] Add a new mangling to represent opaque return type for ObjC runtime name

* [Docs] Add the new 'Qu' mangling to 'Mangling.rst' document

* [Test] Update test invocation arguments
2020-08-05 05:03:45 +01:00

14 lines
296 B
Swift

// 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()
}