Use isFunction

This commit is contained in:
Chris Smowton
2022-10-17 12:27:58 +01:00
parent 429d400125
commit efd7b6e692

View File

@@ -2442,7 +2442,7 @@ open class KotlinFileExtractor(
}
}
tw.writeExprsKotlinType(id, type.kotlinResult.id)
if (target.name.asString() == "inv" && (c.type.isByte() || c.type.isShort()))
if (isFunction(target, "kotlin", "Byte or Short", { it == "Byte" || it == "Short" }, "inv"))
unaryopReceiver(id, c.extensionReceiver, "Extension receiver")
else
unaryopDisp(id)