Files
swift-mirror/test/decl/enum/frozen-nonresilient.swift
Keith Smiley bf4aaacb02 Remove @frozen without library evolution warning
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.
2019-11-12 19:35:05 -08:00

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