Files
swift-mirror/validation-test/compiler_crashers_2/unsupported_opened_existential.swift
Alejandro Alonso 81ba0cee34 Disable unsupported_opened_existential.swift
disable only for asserts

one more time
2022-01-24 17:22:25 -08:00

31 lines
530 B
Swift

// RUN: not --crash %target-swift-frontend -emit-ir %s
// REQUIRES: asserts
func fetch() {
sryMap { return "" }
.napError{ $0.abc() }
}
func sryMap<String>(_ transform: () -> String) -> SryMap<String> {
fatalError()
}
protocol MyError {}
extension MyError {
func abc() -> Void { }
}
protocol MyProto {
associatedtype Failure
}
extension MyProto {
func napError(_ transform: (Self.Failure) -> Void) {}
}
struct SryMap<Output> : MyProto {
typealias Failure = MyError & SomeClass<Output>
}
class SomeClass<T> {}