IR: don't attempt to move defaults to actual in another module

May happen when a function in an `expect` class is aliased through an
`actual typealias`; the matching declaration is filtered out in
`ExpectedActualResolver.findActualForExpected` as it has no source.
This commit is contained in:
pyos
2019-11-15 14:14:01 +01:00
committed by Alexander Udalov
parent 1bc48c3df9
commit 9182f2c796
5 changed files with 38 additions and 12 deletions
@@ -0,0 +1,12 @@
// !LANGUAGE: +MultiPlatformProjects
// FILE: impl.kt
class A(val result: String = "OK")
// FILE: multiplatform.kt
expect class B(result: String = "FAIL")
actual typealias B = A
fun box(): String {
return B().result
}