mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The code goes into its own sub-tree under 'tools' but tests go under 'test', so that running 'check-swift' will also run all the SourceKit tests. SourceKit is disabled on non-darwin platforms.
19 lines
466 B
Swift
19 lines
466 B
Swift
class MyClass {
|
|
init(abc:Int) {
|
|
}
|
|
}
|
|
|
|
class MySubClass: MyClass {
|
|
}
|
|
|
|
func foo() {
|
|
MyClass(abc:1)
|
|
MySubClass(abc:1)
|
|
}
|
|
|
|
// RUN: %sourcekitd-test -req=cursor -pos=10:12 %s -- %s | FileCheck -check-prefix=CHECK1 %s
|
|
// CHECK1: <Declaration>init(abc: <Type usr="s:Si">Int</Type>)</Declaration>
|
|
|
|
// RUN: %sourcekitd-test -req=cursor -pos=11:16 %s -- %s | FileCheck -check-prefix=CHECK2 %s
|
|
// CHECK2: <Declaration>init(abc: <Type usr="s:Si">Int</Type>)</Declaration>
|