Files
swift-mirror/test/embedded/basic-errors-no-stdlib.swift
Doug Gregor aad51cab01 [Embedded] Remove the ability to disable existentials in Embedded Swift
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.
2026-04-17 17:38:01 -07:00

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()
}