diff options
author | alandonovan <adonovan@google.com> | 2019-05-28 16:17:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-28 16:17:46 -0400 |
commit | a4759313ecebde57e965c9b4293a7101eaf36763 (patch) | |
tree | 754027627a5e3dc99ecd79b0784b0c7e8baf77de /syntax/scan_test.go | |
parent | f26cf183f2ecbd6a7f6437d765dd14f22e65c006 (diff) | |
download | starlark-go-a4759313ecebde57e965c9b4293a7101eaf36763.tar.gz |
syntax: drop legacy (0644) octal literals (#205)
Use 0o644 instead.
Diffstat (limited to 'syntax/scan_test.go')
-rw-r--r-- | syntax/scan_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/syntax/scan_test.go b/syntax/scan_test.go index 06f42db..2dcdb1b 100644 --- a/syntax/scan_test.go +++ b/syntax/scan_test.go @@ -183,9 +183,7 @@ pass`, "pass newline pass EOF"}, // consecutive newlines are consolidated {"0o12934e1", `10 9.340000e+03 EOF`}, {"0o123.", `83 . EOF`}, {"0o123.1", `83 1.000000e-01 EOF`}, - // TODO(adonovan): reenable later. - // {"0123", `obsolete form of octal literal; use 0o123`}, - {"0123", `83 EOF`}, + {"0123", `foo.star:1:5: obsolete form of octal literal; use 0o123`}, {"012834", `foo.star:1:1: invalid int literal`}, {"012934", `foo.star:1:1: invalid int literal`}, {"i = 012934", `foo.star:1:5: invalid int literal`}, |