Remove deprecated ranges from tests and take into account that Byte and Short rangeTo now returns IntRange.
This commit is contained in:
@@ -5,11 +5,12 @@ fun box(): String {
|
||||
val charRange = '0'..'9'
|
||||
'9' in charRange
|
||||
val byteRange = 0.toByte()..9.toByte()
|
||||
9.toByte() in byteRange
|
||||
// seems no stdlib available here, thus no contains as extension
|
||||
9 in byteRange
|
||||
val longRange = 0.toLong()..9.toLong()
|
||||
9.toLong() in longRange
|
||||
val shortRange = 0.toShort()..9.toShort()
|
||||
9.toShort() in shortRange
|
||||
9 in shortRange
|
||||
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user