Be explicit about Kotlin database type

This commit is contained in:
Chris Smowton
2024-11-01 19:02:28 +00:00
parent 5d3f723df9
commit 81ff394533

View File

@@ -5748,7 +5748,7 @@ open class KotlinFileExtractor(
// Match Java by using a special <nulltype> for nulls, rather than Kotlin's view of this which is // Match Java by using a special <nulltype> for nulls, rather than Kotlin's view of this which is
// kotlin.Nothing?, the type that can only contain null. // kotlin.Nothing?, the type that can only contain null.
val nullTypeName = "<nulltype>" val nullTypeName = "<nulltype>"
val javaNullType = tw.getLabelFor( val javaNullType = tw.getLabelFor<DbPrimitive>(
"@\"type;$nullTypeName\"", "@\"type;$nullTypeName\"",
{ tw.writePrimitives(it, nullTypeName) } { tw.writePrimitives(it, nullTypeName) }
) )