mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This warning is produced if you annotate an enum with `@frozen` but build without library evolution enabled. The problem is that if you only build with library evolution enabled for release builds, this leaves you with a warning for all debug builds. The downside of this change is that if you never build with library evolution, you may have this unnecessary annotation without noticing.
6 lines
167 B
Swift
6 lines
167 B
Swift
// RUN: %target-typecheck-verify-swift -warnings-as-errors
|
|
|
|
@frozen public enum Exhaustive {} // expected-no-warning
|
|
|
|
@frozen enum NotPublic {} // expected-no-warning
|