Files
swift-mirror/test/IRGen/implicit_some_a.swift
Nate Chandler 2094026ed1 [Test] Require asserts for experimental feature.
On non-asserts compilers, the following error is emitted:

```
<unknown>:0: error: experimental feature '<FEATURE>' cannot be enabled in a production compiler
```
2023-02-24 18:25:21 -08:00

10 lines
302 B
Swift

// RUN: %target-swift-frontend -emit-ir -disable-availability-checking -primary-file %s %S/Inputs/implicit_some_b.swift -enable-experimental-feature ImplicitSome
// Because of -enable-experimental-feature ImplicitSome
// REQUIRES: asserts
protocol P {}
struct S: P {}
func foo() -> P { return S() }