Files
swift-mirror/test/refactoring/SyntacticRename/invalid-newname.swift
Argyrios Kyrtzidis 60a91bb736 [refactoring] Upstreaming the implementation for Swift local refactoring (#11568)
[refactoring] Upstreaming the implementation for Swift local refactoring
2017-08-22 16:50:16 -07:00

5 lines
385 B
Swift

// RUN: not %refactor -syntactic-rename -source-filename %s -pos="ignore" -old-name "a" -new-name " "
// RUN: not %refactor -syntactic-rename -source-filename %s -pos="ignore" -is-function-like -old-name "foo(a:)" -new-name "foo( :)"
// RUN: not %refactor -syntactic-rename -source-filename %s -pos="ignore" -is-function-like -old-name "foo" -new-name "foo( )"
func /*ignore*/foo() {}