blob: 35625b765efdd884be6b45e194c7c084641aa08e [file] [log] [blame]
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -disable-availability-checking -emit-module -enable-library-evolution -emit-module-path=%t/A.swiftmodule -module-name=A %S/Inputs/mangle-opaque-return-types-A.swift
// RUN: %target-swift-frontend -disable-availability-checking -I %t -emit-ir %s
import A
public struct C<T, Content: Proto> {
let data: T
let content: Content
init(_ t: T, _ c: Content) {
data = t
content = c
}
public var dontCrash : some Proto {
return Group(Choice(content, EmptyProto().add()))
}
}