Test for Complete class names in expression position (KT-2821, KT-3779)

#KT-2821 Fixed
 #KT-3779 Fixed
This commit is contained in:
Nikolay Krasko
2014-03-20 19:03:39 +04:00
parent 8511c683c6
commit 287c1f4c71
6 changed files with 45 additions and 0 deletions
@@ -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;
}