tests: a minor grammar fix
parent
dc034d9b16
commit
0f28ff4c8d
|
@ -2563,7 +2563,7 @@ fn semicolonize(main string, details string) string {
|
||||||
|
|
||||||
fn (mut c Checker) type_implements(typ ast.Type, interface_type ast.Type, pos token.Position) bool {
|
fn (mut c Checker) type_implements(typ ast.Type, interface_type ast.Type, pos token.Position) bool {
|
||||||
$if debug_interface_type_implements ? {
|
$if debug_interface_type_implements ? {
|
||||||
eprintln('> type_implements typ: $typ.debug() | inter_typ: $inter_typ.debug()')
|
eprintln('> type_implements typ: $typ.debug() | inter_typ: $interface_typ.debug()')
|
||||||
}
|
}
|
||||||
utyp := c.unwrap_generic(typ)
|
utyp := c.unwrap_generic(typ)
|
||||||
typ_sym := c.table.get_type_symbol(utyp)
|
typ_sym := c.table.get_type_symbol(utyp)
|
||||||
|
|
|
@ -19,7 +19,7 @@ vlib/v/checker/tests/unknown_comptime_expr.vv:13:6: error: undefined ident: `huh
|
||||||
| ~~~
|
| ~~~
|
||||||
14 | $if s is int {}
|
14 | $if s is int {}
|
||||||
15 | $if s.i is 5 {}
|
15 | $if s.i is 5 {}
|
||||||
vlib/v/checker/tests/unknown_comptime_expr.vv:14:6: error: invalid `$if` condition: expected a type or selector expression or an interface check
|
vlib/v/checker/tests/unknown_comptime_expr.vv:14:6: error: invalid `$if` condition: expected a type or a selector expression or an interface check
|
||||||
12 | s := S1{}
|
12 | s := S1{}
|
||||||
13 | $if huh.typ is T {}
|
13 | $if huh.typ is T {}
|
||||||
14 | $if s is int {}
|
14 | $if s is int {}
|
||||||
|
|
Loading…
Reference in New Issue