mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
246 B
Swift
12 lines
246 B
Swift
enum StringEnum: String {
|
|
case foo = "foo"
|
|
}
|
|
|
|
enum IntEnum: Int {
|
|
case foo = 12
|
|
}
|
|
|
|
// https://github.com/apple/swift/issues/54711
|
|
|
|
// RUN: %sourcekitd-test -req=cursor -pos=2:14 %s -- %s
|
|
// RUN: %sourcekitd-test -req=cursor -pos=6:14 %s -- %s |