Resolve type aliases when looking for default arguments to actual methods.
Change-Id: I059093c1af32fcd7a2de36c25160c352d6f03a3c
This commit is contained in:
committed by
Mikhael Bogdanov
parent
dfd3947856
commit
3f4c5c8d53
@@ -0,0 +1,20 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// WITH_RUNTIME
|
||||
// FILE: common.kt
|
||||
|
||||
expect annotation class Foo(val z: String = "OK")
|
||||
|
||||
// FILE: platform.kt
|
||||
|
||||
actual typealias Foo = Foo2
|
||||
|
||||
annotation class Foo2 (val z: String = "OK")
|
||||
|
||||
@Foo
|
||||
fun test() {}
|
||||
|
||||
fun box(): String {
|
||||
test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Vendored
-1
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// WITH_REFLECT
|
||||
// FILE: main.kt
|
||||
|
||||
Reference in New Issue
Block a user