Make MIN_VALUE and MAX_VALUE of unsigned types actual constants

This commit is contained in:
Ilya Gorbunov
2018-06-29 19:54:46 +03:00
parent 7a208c3e01
commit 3349976279
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -49,12 +49,12 @@ class UnsignedTypeGenerator(val type: UnsignedType, out: PrintWriter) : BuiltIns
/**
* A constant holding the minimum value an instance of $className can have.
*/
public /*const*/ val MIN_VALUE: $className = $className(0)
public const val MIN_VALUE: $className = $className(0)
/**
* A constant holding the maximum value an instance of $className can have.
*/
public /*const*/ val MAX_VALUE: $className = $className(-1)
public const val MAX_VALUE: $className = $className(-1)
}""")
generateCompareTo()