"Go to class / symbol / super" & type aliases

This commit is contained in:
Dmitry Petrov
2016-06-16 09:04:13 +03:00
parent 0033cf85c4
commit c8a5ccb1d0
9 changed files with 142 additions and 11 deletions
+23
View File
@@ -0,0 +1,23 @@
typealias TestGlobal = Any
fun some() {
typealias TestInFun = Any
}
interface SomeTrait {
typealias TestInTrait = Any
}
class Some() {
typealias TestInClass = Any
companion object {
typealias TestInClassObject = Any
}
}
// SEARCH_TEXT: Test
// REF: typealias TestGlobal = Any
// REF: typealias TestInClass = Any
// REF: typealias TestInClassObject = Any
// REF: typealias TestInTrait = Any
@@ -0,0 +1,8 @@
// FILE: before.kt
interface Some
typealias S = Some
class <caret>SomeClass: S
// FILE: after.kt
interface <caret>Some
typealias S = Some
class SomeClass: S
+23
View File
@@ -0,0 +1,23 @@
typealias testGlobal = Any
fun some() {
typealias testInFun = Any
}
interface SomeTrait {
typealias testInTrait = Any
}
class Some() {
typealias testInClass = Any
companion object {
typealias testInClassObject = Any
}
}
// SEARCH_TEXT: test
// REF: typealias testGlobal = Any
// REF: typealias testInClass = Any
// REF: typealias testInClassObject = Any
// REF: typealias testInTrait = Any