mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
13 lines
332 B
Swift
13 lines
332 B
Swift
class C {
|
|
var a : Int
|
|
var b : Int
|
|
init(a : Int, b: Int) {
|
|
self.a = a
|
|
self.b = b
|
|
}
|
|
}
|
|
|
|
// RUN: rm -rf %t.result && mkdir -p %t.result
|
|
// RUN: %refactor -extract-function -source-filename %s -pos=5:1 -end-pos=6:15 >> %t.result/L5-6.swift
|
|
// RUN: diff -u %S/Outputs/extract_init/L5-6.swift.expected %t.result/L5-6.swift
|