mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This converts the instances of the pattern for which we have a proper substitution in lit. This will make it easier to replace it appropriately with Windows equivalents.
17 lines
365 B
Swift
17 lines
365 B
Swift
enum E {
|
|
case e1
|
|
case e2
|
|
}
|
|
func foo(e : E) {
|
|
switch (e) {
|
|
default:
|
|
return
|
|
}
|
|
}
|
|
|
|
// RUN: %empty-directory(%t.result)
|
|
// RUN: %sourcekitd-test -req=expand-default -pos=7:7 %s -- %s > %t.result/expand-default.swift.expected
|
|
// RUN: diff -u %S/expand-default.swift.expected %t.result/expand-default.swift.expected
|
|
|
|
// REQUIRES-ANY: OS=macosx, OS=linux-gnu
|