Test for Complete class names in expression position (KT-2821, KT-3779)
#KT-2821 Fixed #KT-3779 Fixed
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
class Foo {
|
||||
fun add(a: Any) {}
|
||||
}
|
||||
|
||||
|
||||
fun test() {
|
||||
val foo = Foo()
|
||||
foo.add(AL<caret>)
|
||||
}
|
||||
|
||||
/* For KT-3779, KT-2821 */
|
||||
|
||||
// INVOCATION_COUNT: 2
|
||||
// EXIST: ArrayList
|
||||
@@ -0,0 +1,10 @@
|
||||
package some
|
||||
|
||||
fun foo(i: Int) = 1
|
||||
fun test() {
|
||||
foo(B<caret>)
|
||||
}
|
||||
|
||||
/* KT-3779, KT-2821 */
|
||||
|
||||
// EXIST: Bar
|
||||
@@ -0,0 +1,6 @@
|
||||
package javapackage;
|
||||
|
||||
// For NotImportedJavaClass.kt
|
||||
public class Bar {
|
||||
public static int BAZZ = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user