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

Skip to content

Commit 6b5663d

Browse files
committed
Kotlin: Handle Short and Byte literals
I don't think we need separate DB types for them
1 parent f0ac63c commit 6b5663d

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
@@ -1379,7 +1379,7 @@ class X {
13791379
val exprParent = parent.expr(e, callable)
13801380
val v = e.value
13811381
when(v) {
1382-
is Int -> {
1382+
is Int, is Short, is Byte -> {
13831383
val id = tw.getFreshIdLabel<DbIntegerliteral>()
13841384
val type = useType(e.type)
13851385
val locId = tw.getLocation(e)

0 commit comments

Comments
 (0)