Skip to content

Commit efd7b6e

Browse files
committed
Use isFunction
1 parent 429d400 commit efd7b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2442,7 +2442,7 @@ open class KotlinFileExtractor(
24422442
}
24432443
}
24442444
tw.writeExprsKotlinType(id, type.kotlinResult.id)
2445-
if (target.name.asString() == "inv" && (c.type.isByte() || c.type.isShort()))
2445+
if (isFunction(target, "kotlin", "Byte or Short", { it == "Byte" || it == "Short" }, "inv"))
24462446
unaryopReceiver(id, c.extensionReceiver, "Extension receiver")
24472447
else
24482448
unaryopDisp(id)

0 commit comments

Comments
 (0)