Kapt: Fix compilation errors when the referenced class has '$' in the beginning of its name (KT-22493)

This commit is contained in:
Yan Zhulanow
2018-01-26 20:49:15 +03:00
parent 5fc9c5671c
commit 1f81c0cdfe
6 changed files with 128 additions and 9 deletions
@@ -0,0 +1,16 @@
// CORRECT_ERROR_TYPES
// FILE: te/st/a/JavaClass
package te.st.a;
public class JavaClass {}
// FILE: test.kt
@file:Suppress("UNRESOLVED_REFERENCE")
package te.st.a
import te.st.a.`$Test`.Inner as MyInner
import te.st.a.`Test$`.Inner as MyInner2
import te.st.a.`Test$`.`Inner$` as MyInner3
fun a(a: MyInner) {}