mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Even when building not for library evolution, @frozen is a valid attribute on enums. rdar://128358780
6 lines
189 B
Swift
6 lines
189 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
@frozen public enum Exhaustive {} // expected-no-warning
|
|
|
|
@frozen enum NotPublic {} // expected-warning{{@frozen has no effect on non-public enums}}
|