Resolve type aliases when looking for default arguments to actual methods.

Change-Id: I059093c1af32fcd7a2de36c25160c352d6f03a3c
This commit is contained in:
Steven Schäfer
2019-03-12 16:59:46 +01:00
committed by Mikhael Bogdanov
parent dfd3947856
commit 3f4c5c8d53
8 changed files with 49 additions and 3 deletions
@@ -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"
}