parser: warn about old use of typeof (#7923)

This commit is contained in:
Nick Treleaven 2021-01-07 19:32:02 +00:00 committed by GitHub
parent a2add15558
commit cbefe6c32f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 93 additions and 92 deletions

View file

@ -536,8 +536,8 @@ fn test_bytes_to_string() {
fn test_charptr() {
foo := charptr('VLANG'.str)
println(typeof(foo))
assert typeof(foo) == 'charptr'
println(typeof(foo).name)
assert typeof(foo).name == 'charptr'
assert unsafe { foo.vstring() } == 'VLANG'
assert unsafe { foo.vstring_with_len(3) } == 'VLA'
}