mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
REQUIRES-ANY is deprecated and being removed. Use boolean expressions. rdar://problem/58549266
13 lines
412 B
Swift
13 lines
412 B
Swift
func foo() -> Int {
|
|
var a = 3
|
|
a = a + 1
|
|
return 1
|
|
}
|
|
|
|
// RUN: %empty-directory(%t.result)
|
|
// RUN: %sourcekitd-test -req=extract-func -pos=2:1 -end-pos 4:11 -name new_name %s -- %s > %t.result/extract-func.swift.expected
|
|
// RUN: diff -u %S/extract-func.swift.expected %t.result/extract-func.swift.expected
|
|
|
|
// FIXME: Fails on linux with assertion: "!GlibcModuleMapPath.empty()"" failed
|
|
// REQUIRES: OS=macosx
|