mirror of
https://github.com/apple/swift.git
synced 2026-09-30 10:17:34 +02:00
The opaque values test coverage I initially added will emit to stdout, which is noisy for people's logs if the test is failing for some other reason.
20 lines
342 B
Swift
20 lines
342 B
Swift
// RUN: %target-swift-emit-silgen-ossa -o /dev/null -enable-sil-opaque-values %s
|
|
// RUN: %target-swift-emit-silgen %s
|
|
|
|
class AA {
|
|
subscript<T>(_: T.Type) -> T? {
|
|
get { fatalError() }
|
|
set {}
|
|
}
|
|
}
|
|
|
|
class C {
|
|
typealias A = AA
|
|
|
|
func f() {
|
|
let a = AA()
|
|
guard let result = a[Self.A.self] else { return }
|
|
_ = result
|
|
}
|
|
}
|