Make TypeMapper use signatureWriter for scripts expression evaluation;
Support nullability detection for IrScriptSymbol; tests in IJ commit: "[scripting] Introduce tests for KT-51755"
This commit is contained in:
@@ -102,7 +102,10 @@ object AbstractTypeMapper {
|
||||
mapType(context, type.original(), mode, sw)
|
||||
|
||||
typeConstructor.isScript() ->
|
||||
Type.getObjectType(context.getScriptInternalName(typeConstructor))
|
||||
Type.getObjectType(context.getScriptInternalName(typeConstructor)).let {
|
||||
sw?.writeClass(it)
|
||||
it
|
||||
}
|
||||
|
||||
else ->
|
||||
throw UnsupportedOperationException("Unknown type $type")
|
||||
|
||||
Reference in New Issue
Block a user