accf80a624
For a class which cannot be resolved in the current deserialization session, create a special ClassDescriptor instance with an empty scope and put in the correct package under the current module. Codegen will perfectly map such class to its JVM signature (because only the precise FQ name is needed, which is available). For more details on this approach, see the issue description. #KT-4328 Fixed #KT-11497 Fixed
12 lines
260 B
Kotlin
Vendored
12 lines
260 B
Kotlin
Vendored
package c
|
|
|
|
import b.B
|
|
|
|
fun bar(b: B) {
|
|
// Implicit usage of (unavailable) a.A, return value is not used. It should still be an error as in Java
|
|
b.foo()
|
|
|
|
// Return value is used but the type is incorrect, also an error
|
|
val x: String = b.foo()
|
|
}
|