Files
swift-mirror/test/refactoring/ExtractExpr/name_collision.swift
Saleem Abdulrasool b67d5f0cf7 test: convert rm -rf && mkdir -p into %empty-directory
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.
2018-03-06 14:30:54 -08:00

15 lines
415 B
Swift

func foo1() -> Int { return 0 }
func foo(_ a : Int) -> Int {
let new_name = 1
let new_name1 = 1
let new_name2 = 1
let new_name3 = 1
var aaa = 1 + 2 + 2 + a + foo1()
return 1
}
// RUN: %empty-directory(%t.result)
// RUN: %refactor -extract-expr -source-filename %s -pos=8:13 -end-pos=8:22 >> %t.result/C13-22.swift
// RUN: diff -u %S/Outputs/name_collision/C13-22.swift.expected %t.result/C13-22.swift