mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This makes sure that different class template instantiations with enum arguments get distinct generated Swift type names.
Similar to aa6804a3.
rdar://139437761 / resolves https://github.com/swiftlang/swift/issues/77358
6 lines
358 B
Swift
6 lines
358 B
Swift
// RUN: %target-swift-ide-test -print-module -module-to-print=ClassTemplateWithEnumParameter -I %S/Inputs -source-filename=x -cxx-interoperability-mode=upcoming-swift | %FileCheck %s
|
|
|
|
// CHECK: typealias WrappedEnum = Wrapper<MyEnum>
|
|
// CHECK: typealias WrappedEnumClass = Wrapper<MyEnumClass>
|
|
// CHECK: typealias WrappedTypedefEnum = Wrapper<MyTypedefEnum>
|