Completion fails with exception "Toplevel class has no fqName" (KT-5119)

Groovy scripts files can create PsiClasses with null qualfied names (getQualifiedName()) and names (getName()).

 #KT-5119 Fixed
This commit is contained in:
Nikolay Krasko
2014-06-02 18:33:24 +04:00
parent 1c0d1630e5
commit 848863ef93
11 changed files with 70 additions and 3 deletions
@@ -0,0 +1,7 @@
class TestKotlin
val test = Test<caret>
// EXIST: TestKotlin
// EXIST: TestGroovyNormal
// EXIST: TestGroovyScript
@@ -0,0 +1,2 @@
public class TestGroovyNormal {
}
@@ -0,0 +1,2 @@
public class TestGroovyScript {
}
@@ -0,0 +1,10 @@
package foo
class TestKotlin
val test = Test<caret>
// EXIST: TestKotlin
// EXIST: TestGroovyNormal
// EXIST: TestGroovyScript
// INVOCATION_COUNT: 2
@@ -0,0 +1,2 @@
public class TestGroovyNormal {
}