Tests for GotoTypeDeclaration action

(cherry picked from commit 3cd100b)
This commit is contained in:
Nikolay Krasko
2016-09-05 18:29:40 +03:00
committed by Nikolay Krasko
parent eb22c94b6d
commit 115bc7e73b
7 changed files with 160 additions and 1 deletions
@@ -0,0 +1,23 @@
// FILE: before.kt
class Foo
fun <T> some(a: T, f: (T) -> Unit) {}
fun foo(a: Any) {}
fun baz() {
some(Foo()) { p ->
foo(p<caret>)
}
}
// FILE: after.kt
class <caret>Foo
fun <T> some(a: T, f: (T) -> Unit) {}
fun foo(a: Any) {}
fun baz() {
some(Foo()) { p ->
foo(p)
}
}
@@ -0,0 +1,17 @@
// FILE: before.kt
class Foo
fun test(): Foo = Foo()
fun void() {
<caret>test()
}
// FILE: after.kt
class <caret>Foo
fun test(): Foo = Foo()
fun void() {
test()
}
@@ -0,0 +1,15 @@
// FILE: before.kt
interface Some
fun some() {
val a: Some = null!!
<caret>a
}
// FILE: after.kt
interface <caret>Some
fun some() {
val a: Some = null!!
a
}