Convert primitive arrays to Java arrays

This commit is contained in:
Chris Smowton
2021-10-27 17:57:24 +01:00
committed by Ian Lynagh
parent a92e20e526
commit 055e9b7797

View File

@@ -509,7 +509,7 @@ class X {
}
*/
(s.isArray() || s.isNullableArray()) && s.arguments.isNotEmpty() -> {
((s.isArray() || s.isNullableArray()) && s.arguments.isNotEmpty()) || s.isPrimitiveArray() -> {
// 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}\"")