Files
swift-mirror/test/Sema/Inputs/availability_enum_case_other.swift
Slava Pestov 765ce78992 Sema: Downgrade potentially unavailable enum cases to a warning in module interfaces
There are two pieces here:

- A -warn-on-potentially-unavailable-enum-case flag is passed down by
  the driver when *producing* a swiftinterface

- When *consuming* a swiftinterface, also enable this behavior

Part of rdar://problem/78306593.
2021-06-08 23:38:35 -04:00

5 lines
67 B
Swift

public enum Horse {
@available(macOS 100, *)
case kevin(Int)
}