Implement JVM IR support for scripts
This commit is contained in:
+2
-2
@@ -150,8 +150,8 @@ internal fun makeCompiledScript(
|
||||
val module = makeCompiledModule(generationState)
|
||||
|
||||
val resultField = with(generationState.scriptSpecific) {
|
||||
if (resultType == null || resultFieldName == null) null
|
||||
else resultFieldName!! to KotlinType(DescriptorRenderer.FQ_NAMES_IN_TYPES.renderType(resultType!!))
|
||||
if (resultFieldName == null) null
|
||||
else resultFieldName!! to KotlinType(resultTypeString ?: DescriptorRenderer.FQ_NAMES_IN_TYPES.renderType(resultType!!))
|
||||
}
|
||||
|
||||
return KJvmCompiledScript(
|
||||
|
||||
+1
-1
@@ -119,7 +119,7 @@ open class GenericReplCompiler(
|
||||
classes,
|
||||
generationState.scriptSpecific.resultFieldName != null,
|
||||
classpathAddendum ?: emptyList(),
|
||||
generationState.scriptSpecific.resultType?.let {
|
||||
generationState.scriptSpecific.resultTypeString ?: generationState.scriptSpecific.resultType?.let {
|
||||
DescriptorRenderer.FQ_NAMES_IN_TYPES.renderType(it)
|
||||
},
|
||||
null
|
||||
|
||||
Reference in New Issue
Block a user