mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
319 B
Swift
17 lines
319 B
Swift
enum Foo {
|
|
case east, west
|
|
case other(String)
|
|
init(i: Int) {}
|
|
init(s: String) {}
|
|
static var instance: Foo { .east }
|
|
static func create() -> Foo { .west }
|
|
}
|
|
|
|
func test() -> Foo {
|
|
return .
|
|
}
|
|
|
|
// RUN: %sourcekitd-test -req=complete -pos=11:11 %s -- %s > %t.response
|
|
// RUN: %diff -u %s.response %t.response
|
|
|