mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
640 B
Swift
17 lines
640 B
Swift
var bar: Int {
|
|
return 0
|
|
}
|
|
// CHECK-NO-ENV-LABEL: Action begins
|
|
// CHECK-NO-ENV-NEXT: Action ends
|
|
|
|
// CHECK-ENV-LABEL: Action begins
|
|
// CHECK-ENV-NEXT: Replace Function Bodies With 'fatalError()'
|
|
// CHECK-ENV-NEXT: Action ends
|
|
|
|
// replace.bodies.with.fatalError/-replace-bodies-with-fatalError should only be
|
|
// found if the appropriate environment variable is set.
|
|
|
|
// RUN: %refactor -actions -source-filename %s -pos=1:1 -end-pos=3:2 | %FileCheck %s -check-prefix CHECK-NO-ENV
|
|
|
|
// RUN: env SWIFT_ENABLE_INTERNAL_REFACTORING_ACTIONS=1 %refactor -actions -source-filename %s -pos=1:1 -end-pos=3:2 | %FileCheck %s -check-prefix CHECK-ENV
|