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
This commit is contained in:
Alexander Udalov
2016-03-09 20:48:00 +03:00
parent 3944d56ac2
commit accf80a624
17 changed files with 228 additions and 34 deletions
@@ -0,0 +1,3 @@
package a
interface A
@@ -0,0 +1,7 @@
package b
import a.A
interface B {
fun foo(): A
}