Kotlin: Add KotlinTypes to arrays

This commit is contained in:
Ian Lynagh
2021-11-03 16:42:42 +00:00
parent ba56517900
commit 06a41b3923
5 changed files with 26 additions and 10 deletions

View File

@@ -511,9 +511,9 @@ class X {
s.isArray() && s.arguments.isNotEmpty() -> {
// TODO: fix this, this is only a dummy implementation to let the tests pass
val elementType = useTypeOld(s.getArrayElementType(pluginContext.irBuiltIns))
val elementType = useType(s.getArrayElementType(pluginContext.irBuiltIns))
val id = tw.getLabelFor<DbArray>("@\"array;1;{$elementType}\"")
tw.writeArrays(id, "ARRAY", elementType, 1, elementType)
tw.writeArrays(id, "ARRAY", elementType.javaResult.id, elementType.kotlinResult.id, 1, elementType.javaResult.id, elementType.kotlinResult.id)
val javaSignature = "an array" // TODO: Wrong
val javaResult = TypeResult(id, javaSignature)
val aClassId = makeClass("kotlin", "Array") // TODO: Wrong