8 lines
467 B
Plaintext
8 lines
467 B
Plaintext
vlib/v/checker/tests/comparing_typesymbol_to_a_type_should_not_compile.vv:12:7: error: possible type mismatch of compared values of `==` operation
|
|
10 | x := ityp == ast.string_type
|
|
11 | // the next line should produce at least a warning, or even an error, without an explicit cast:
|
|
12 | z := isym == ast.string_type
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~
|
|
13 | println(typeof(isym).name)
|
|
14 | println(typeof(ast.string_type).name)
|