Added test for KT-5272 which is not reproduced

This commit is contained in:
Valentin Kipyatkov
2014-07-18 22:23:59 +04:00
parent d6b12187c2
commit c8c8b477ef
3 changed files with 28 additions and 0 deletions
@@ -0,0 +1,13 @@
trait X {
open fun fn() {}
}
open class Y {
public open fun fn() {}
}
class Z : Y(), X {
override fun fn() {
super<<caret>>.fn()
}
}
@@ -0,0 +1,13 @@
trait X {
open fun fn() {}
}
open class Y {
public open fun fn() {}
}
class Z : Y(), X {
override fun fn() {
super<X<caret>>.fn()
}
}
@@ -142,4 +142,6 @@ public class BasicCompletionHandlerTest : CompletionHandlerTestBase(){
fun testLocalClassCompletion() = doTest(1, "LocalClass", null, '\n')
fun testNestedLocalClassCompletion() = doTest(1, "Nested", null, '\n')
fun testTypeArgOfSuper() = doTest(1, "X", null, '\n')
}