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

table: use optional in find_method()

This commit is contained in:
Alexander Medvednikov
2019-09-18 15:37:34 +03:00
parent 059cb9cb74
commit 13e4c79f58
7 changed files with 49 additions and 38 deletions

View File

@ -7,7 +7,7 @@ fn test_array_str() {
println(f)
//s := f.str()
//println(s)
n := [i64(1), 2, 3]
n := [1, 2, 3]
assert n.str() == '[1, 2, 3]'
println(n) // make sure the array is printable
n2 := [4,5,6]