Files
swift-mirror/test/IDE/complete_nonexhaustive.swift
Pavel Yaskevich 43eec8fede [AST/Sema] SE-0487: Expand @nonexhaustive attribute to support warn argument
The spelling `@nonexhaustive(warn)` replaces `@preEnumExtensibility`
attriubte.
2025-07-04 10:20:25 -07:00

10 lines
262 B
Swift

// RUN: %batch-code-completion -enable-experimental-feature NonexhaustiveAttribute
// REQUIRES: swift_feature_NonexhaustiveAttribute
// NONEXHAUSTIVE-DAG: Keyword/None: warn; name=warn
@nonexhaustive(#^NONEXHAUSTIVE^#)
public enum E {
}