Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 055e9b7

Browse files
smowtonigfoo
authored andcommitted
Convert primitive arrays to Java arrays
1 parent a92e20e commit 055e9b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/kotlin-extractor/src/main/kotlin/KotlinExtractorExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ class X {
509509
}
510510
*/
511511

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

0 commit comments

Comments
 (0)