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.
14 lines
292 B
Swift
14 lines
292 B
Swift
enum E {
|
|
case e1
|
|
case e2
|
|
case e3
|
|
case e4
|
|
}
|
|
|
|
func foo(e: E) -> Int {
|
|
switch e { }
|
|
}
|
|
// RUN: %empty-directory(%t.result)
|
|
// RUN: %refactor -expand-switch-cases -source-filename %s -pos=9:8 >> %t.result/L10.swift
|
|
// RUN: diff -u %S/Outputs/basic/L10.swift.expected %t.result/L10.swift
|