mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: warn about old use of typeof
(#7923)
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
Reference in New Issue
Block a user