mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The interface files were still printing inverses on the invertible protocols, when that's not required. Doing so yielded warnings during the build because `~Escapable` isn't yet ready for appearing in the stdlib.
21 lines
798 B
Swift
21 lines
798 B
Swift
// RUN: %target-swift-frontend %s \
|
|
// RUN: -swift-version 5 \
|
|
// RUN: -enable-library-evolution \
|
|
// RUN: -emit-module -module-name Swift -parse-stdlib \
|
|
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
|
// RUN: -o %t/Swift.swiftmodule \
|
|
// RUN: -emit-module-interface-path %t/Swift.swiftinterface
|
|
|
|
// RUN: %FileCheck %s < %t/Swift.swiftinterface
|
|
|
|
// CHECK-DAG: @_marker public protocol Copyable {
|
|
// CHECK-DAG: @_marker public protocol Escapable {
|
|
|
|
// This test verifies that:
|
|
// 1. When omitted, the an invertible protocol decl gets automatically
|
|
// synthesized into a module named Swift
|
|
// 2. These protocol decls do not specify inverses in their inheritance clause
|
|
// when emitted into the interface file.
|
|
|
|
@_marker public protocol Escapable { }
|