JVM: fix debug info for script file classes
This commit is contained in:
@@ -51,6 +51,7 @@ class ScriptCodegen private constructor(
|
|||||||
typeMapper.mapSupertype(it.defaultType, null).internalName
|
typeMapper.mapSupertype(it.defaultType, null).internalName
|
||||||
}.toTypedArray()
|
}.toTypedArray()
|
||||||
)
|
)
|
||||||
|
v.visitSource(scriptDeclaration.containingKtFile.name, null)
|
||||||
AnnotationCodegen.forClass(v.visitor, this, state).genAnnotations(scriptDescriptor, null, null)
|
AnnotationCodegen.forClass(v.visitor, this, state).genAnnotations(scriptDescriptor, null, null)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -6,4 +6,4 @@ java.lang.Exception: hi there
|
|||||||
>>> fun bar(): Nothing = throw AssertionError()
|
>>> fun bar(): Nothing = throw AssertionError()
|
||||||
>>> bar()
|
>>> bar()
|
||||||
java.lang.AssertionError
|
java.lang.AssertionError
|
||||||
at Line_3.bar(Unknown Source)
|
at Line_3.bar(Line_3.kts:1)
|
||||||
|
|||||||
Reference in New Issue
Block a user