KT-12949 Type aliases are not considered for import when there is an unresolved reference

#KT-12949 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-09-07 19:36:16 +03:00
parent e41ab2a270
commit 19ef29e96c
5 changed files with 25 additions and 0 deletions
@@ -0,0 +1,8 @@
import dependency.TestAlias
// "Import" "true"
// ERROR: Unresolved reference: TestAlias
fun test() {
val a = <caret>TestAlias
}
@@ -0,0 +1,3 @@
package dependency
typealias TestAlias = () -> Unit
@@ -0,0 +1,6 @@
// "Import" "true"
// ERROR: Unresolved reference: TestAlias
fun test() {
val a = <caret>TestAlias
}