ImportOptimizer: add cases for unresolved references

Part of #KT-31331
This commit is contained in:
Dmitry Gridin
2020-06-17 21:13:25 +07:00
parent 4de582564c
commit 10c62b8d77
8 changed files with 58 additions and 12 deletions
@@ -2,5 +2,8 @@
package test;
import as.type.val.var.fun.is.in.object.when.typeof;
import as.type.val.var.fun.is.in.object.when.typeof.as;
class Test {}
class Test {
public void foo(as a) { }
}
+5 -2
View File
@@ -1,6 +1,9 @@
// ERROR: Unresolved reference: `as`
// ERROR: Unresolved reference: `as`
package test
import `as`.type.`val`.`var`.`fun`.`is`.`in`.`object`.`when`.`typeof`
import `as`.type.`val`.`var`.`fun`.`is`.`in`.`object`.`when`.`typeof`.`as`
internal class Test
internal class Test {
fun foo(a: `as`?) {}
}