Proper return types for unary plus and minus
This commit is contained in:
@@ -608,8 +608,8 @@ class Short : Number, Comparable<Short> {
|
|||||||
|
|
||||||
fun inc() : Short
|
fun inc() : Short
|
||||||
fun dec() : Short
|
fun dec() : Short
|
||||||
fun plus() : Int
|
fun plus() : Short
|
||||||
fun minus() : Int
|
fun minus() : Short
|
||||||
}
|
}
|
||||||
|
|
||||||
class Byte : Number, Comparable<Byte> {
|
class Byte : Number, Comparable<Byte> {
|
||||||
@@ -671,6 +671,6 @@ class Byte : Number, Comparable<Byte> {
|
|||||||
|
|
||||||
fun inc() : Byte
|
fun inc() : Byte
|
||||||
fun dec() : Byte
|
fun dec() : Byte
|
||||||
fun plus() : Int
|
fun plus() : Byte
|
||||||
fun minus() : Int
|
fun minus() : Byte
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user