KT-13181 Unresolved reference when referencing a type alias from a different module
Add corresponding resolution code.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// FILE: A.kt
|
||||
class Foo<out T>(val t: T) {
|
||||
typealias Bar = (T) -> String
|
||||
|
||||
fun baz(b: Bar) = b(t)
|
||||
}
|
||||
|
||||
// FILE: B.kt
|
||||
class FooTest {
|
||||
fun baz(): String {
|
||||
val b: Foo<String>.Bar = { "OK" }
|
||||
return Foo("").baz(b)
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String =
|
||||
FooTest().baz()
|
||||
Reference in New Issue
Block a user