Parse longs with 'L' suffix. Report error if 'l' used.

This commit is contained in:
Natalia Ukhorskaya
2013-12-04 14:30:32 +04:00
parent 53d17bc4ce
commit e5a3518248
17 changed files with 605 additions and 368 deletions
@@ -0,0 +1,10 @@
fun box(): String {
if (1L != 1.toLong()) return "fail 1"
if (0x1L != 0x1.toLong()) return "fail 2"
if (0X1L != 0X1.toLong()) return "fail 3"
if (0b1L != 0b1.toLong()) return "fail 4"
if (0B1L != 0B1.toLong()) return "fail 5"
return "OK"
}