mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
scanner: enable 0oxx to handle octals
This commit is contained in:
@@ -113,3 +113,10 @@ fn test_hex() {
|
||||
x := u64(10)
|
||||
assert x.hex() == '0xa'
|
||||
}
|
||||
|
||||
fn test_oct() {
|
||||
x1 := 0o12
|
||||
assert x1 == 10
|
||||
x2 := 012
|
||||
assert x2 == 10
|
||||
}
|
||||
|
Reference in New Issue
Block a user