Remove implementations of conversions from UByte/UShort to Float/Double

This commit is contained in:
Abduqodiri Qurbonzoda
2019-03-07 19:06:49 +03:00
parent d12e5ddafc
commit 82002e5e73
5 changed files with 4 additions and 62 deletions
+4 -1
View File
@@ -336,8 +336,11 @@ class UnsignedTypeGenerator(val type: UnsignedType, out: PrintWriter) : BuiltIns
else -> "$className(this.to$thisSigned())"
})
}
out.println()
if (type == UnsignedType.UBYTE || type == UnsignedType.USHORT)
return // conversion from UByte/UShort to Float/Double is not allowed
out.println()
for (otherType in PrimitiveType.floatingPoint) {
val otherName = otherType.capitalized