Files
kotlin-fork/compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencySimple/source.kt
T
Alexander Udalov accf80a624 Do not create error types in deserialization on not found classes
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
2016-03-28 14:13:59 +03:00

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()
}