1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: check for reserved type names in for in (fix #14072) (#14212)

This commit is contained in:
StunxFS
2022-04-29 18:25:29 -04:00
committed by GitHub
parent 48eb40cd2c
commit db185e6580
8 changed files with 42 additions and 12 deletions

View File

@@ -40,9 +40,9 @@ fn test_str_invalid_escape() {
}
fn test_str_invalid_must_be_escape() {
for char in important_escapable_chars {
for ch in important_escapable_chars {
mut sc := Scanner{
text: [u8(`"`), `t`, char, `"`]
text: [u8(`"`), `t`, ch, `"`]
}
tok := sc.scan()
assert tok.kind == .error