Tests for kotlin nested class members completion from java

This commit is contained in:
Pavel V. Talanov
2014-12-03 18:46:46 +03:00
parent 56e3983dc9
commit eb1feeb480
6 changed files with 76 additions and 1 deletions
@@ -0,0 +1,8 @@
public class Testing {
public static void test(mockLib.foo.LibClass.Nested p) {
p.<caret>
}
}
// EXIST: getValInNested
// EXIST: funInNested
@@ -0,0 +1,8 @@
public class Testing {
public static void test(mockLib.foo.LibClass p) {
p.getNested().<caret>
}
}
// EXIST: getValInNested
// EXIST: funInNested
@@ -0,0 +1,7 @@
public class Testing {
public static void test() {
mockLib.foo.F.object.F.object.<caret>
}
}
// EXIST: F
@@ -11,7 +11,13 @@ public class LibClass {
public object NestedObject
}
public class Nested
public class Nested {
public val valInNested: Int = 1
public fun funInNested() {
}
}
public val nested: Nested = Nested()
}
public trait LibTrait {
@@ -33,3 +39,13 @@ public fun String.topLevelExtFunction(): String = ""
public var topLevelVar: String = ""
class F() {
class object {
class F {
class object {
object F {
}
}
}
}
}