From 5ae6941375156d76ae584f76aba784df0ddccb07 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Mon, 14 Nov 2011 20:09:18 +0300 Subject: [PATCH] Proper return types for unary plus and minus --- compiler/frontend/src/jet/Library.jet | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/frontend/src/jet/Library.jet b/compiler/frontend/src/jet/Library.jet index 89c169b1aeb..6d8bcdf7d01 100644 --- a/compiler/frontend/src/jet/Library.jet +++ b/compiler/frontend/src/jet/Library.jet @@ -608,8 +608,8 @@ class Short : Number, Comparable { fun inc() : Short fun dec() : Short - fun plus() : Int - fun minus() : Int + fun plus() : Short + fun minus() : Short } class Byte : Number, Comparable { @@ -671,6 +671,6 @@ class Byte : Number, Comparable { fun inc() : Byte fun dec() : Byte - fun plus() : Int - fun minus() : Int -} + fun plus() : Byte + fun minus() : Byte +} \ No newline at end of file