Extract nullable arrays as Java arrays

Nullability doesn't matter to this conversion since Java's arrays are reftypes
This commit is contained in:
Chris Smowton
2021-10-27 17:36:34 +01:00
committed by Ian Lynagh
parent 80e2140ca7
commit a92e20e526

View File

@@ -509,7 +509,7 @@ class X {
}
*/
s.isArray() && s.arguments.isNotEmpty() -> {
(s.isArray() || s.isNullableArray()) && s.arguments.isNotEmpty() -> {
// TODO: fix this, this is only a dummy implementation to let the tests pass
val elementType = useType(s.getArrayElementType(pluginContext.irBuiltIns))
val id = tw.getLabelFor<DbArray>("@\"array;1;{$elementType}\"")