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

Skip to content

Commit a92e20e

Browse files
smowtonigfoo
authored andcommitted
Extract nullable arrays as Java arrays
Nullability doesn't matter to this conversion since Java's arrays are reftypes
1 parent 80e2140 commit a92e20e

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.arguments.isNotEmpty() -> {
512+
(s.isArray() || s.isNullableArray()) && s.arguments.isNotEmpty() -> {
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)