mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
aad51cab01
Support for existentials in Embedded Swift has been available for a little while now and appears to be solid. Remove the ability to disable them (via `-disable-experimental-feature EmbeddedExistentials`), both because it simplifies the code and because it's an ABI break to disable the feature.
14 lines
359 B
Swift
14 lines
359 B
Swift
// RUN: %target-swift-frontend -emit-ir -verify %s -parse-stdlib -enable-experimental-feature Embedded -wmo
|
|
|
|
// REQUIRES: swift_in_compiler
|
|
// REQUIRES: swift_feature_Embedded
|
|
|
|
// This is only an error if we disable support for existentials in embedded.
|
|
|
|
public protocol Player {}
|
|
struct Concrete: Player {}
|
|
|
|
public func test() -> any Player {
|
|
Concrete()
|
|
}
|