3989f351ff
Using files turned to be a bad idea, because people often use the same name for files with expects and with corresponding actuals. This commits disambiguiates ambiguous message for AMBIGUOUS_ACTUALS/AMBGIUOUS_EXPECTS diagnostics by using modules instead of files ^KT-32582 Fixed
23 lines
738 B
Plaintext
Vendored
23 lines
738 B
Plaintext
Vendored
-- Common --
|
|
Exit code: OK
|
|
Output:
|
|
|
|
-- JVM --
|
|
Exit code: COMPILATION_ERROR
|
|
Output:
|
|
compiler/testData/multiplatform/missingOverload/common.kt:7:13: error: expected function 'g' has no actual declaration in module <main>
|
|
The following declaration is incompatible because parameter types are different:
|
|
public actual fun g(a: Any): Unit
|
|
|
|
expect fun g(s: String)
|
|
^
|
|
compiler/testData/multiplatform/missingOverload/jvm.kt:1:14: error: actual class 'Foo' has no corresponding members for expected class members:
|
|
|
|
public final expect fun f(a: Any): Unit
|
|
|
|
The following declaration is incompatible because parameter types are different:
|
|
public final actual fun f(s: String): Unit
|
|
|
|
actual class Foo {
|
|
^
|