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

v2: parser_test: run all tests

This commit is contained in:
Alexander Medvednikov 2020-02-02 08:06:21 +01:00
parent 9f4661391d
commit 377d8dc42c
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ pub fn (c &Checker) check_method_call_expr(method_call_expr ast.MethodCallExpr)
pub fn (c &Checker) selector_expr(selector_expr ast.SelectorExpr) table.Type { pub fn (c &Checker) selector_expr(selector_expr ast.SelectorExpr) table.Type {
ti := c.expr(selector_expr.expr) ti := c.expr(selector_expr.expr)
field_name := selector_expr.field field_name := selector_expr.field
struct_ := c.table.types[ti.idx] // struct_ := c.table.types[ti.idx]
// struct_info := struct_.info as table.Struct // struct_info := struct_.info as table.Struct
typ := c.table.types[ti.idx] typ := c.table.types[ti.idx]
match typ.kind { match typ.kind {

View File

@ -45,7 +45,7 @@ fn test_eval() {
println('eval done') println('eval done')
println(s) println(s)
assert s == expected.join('\n') assert s == expected.join('\n')
exit(0) // exit(0)
} }
fn test_parse_file() { fn test_parse_file() {