JVM: fix debug info for script file classes

This commit is contained in:
pyos
2020-04-23 14:37:43 +02:00
committed by max-kammerer
parent 1e8a660fda
commit 91b6daeacc
2 changed files with 2 additions and 1 deletions
@@ -51,6 +51,7 @@ class ScriptCodegen private constructor(
typeMapper.mapSupertype(it.defaultType, null).internalName
}.toTypedArray()
)
v.visitSource(scriptDeclaration.containingKtFile.name, null)
AnnotationCodegen.forClass(v.visitor, this, state).genAnnotations(scriptDescriptor, null, null)
}
+1 -1
View File
@@ -6,4 +6,4 @@ java.lang.Exception: hi there
>>> fun bar(): Nothing = throw AssertionError()
>>> bar()
java.lang.AssertionError
at Line_3.bar(Unknown Source)
at Line_3.bar(Line_3.kts:1)