Files
swift-mirror/test/SILGen/dynamic_self_opened_existential.swift
Kavon Farvardin d2bd562799 Test: send shadow RUN lines to /dev/null
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.
2026-06-30 17:40:48 -07:00

27 lines
421 B
Swift

// RUN: %target-swift-emit-silgen-ossa -o /dev/null -enable-sil-opaque-values %s
// RUN: %target-swift-emit-silgen %s
public class C {
public func f() -> Self { return self }
public var v: Self { return self }
public subscript() -> Self { return self }
public func g1() {}
}
public protocol P {
func g2()
}
func f(_ p: any P & C) {
p.f().g1()
p.f().g2()
p.v.g1()
p.v.g2()
p[].g1()
p[].g2()
}