v/vlib/v/checker/tests/is_type_invalid.out

15 lines
479 B
Plaintext

vlib/v/checker/tests/is_type_invalid.vv:14:12: error: `IoS` has no variant `byte`
12 |
13 | fn main() {
14 | if IoS(1) is byte {
| ~~
15 | println('not cool')
16 | }
vlib/v/checker/tests/is_type_invalid.vv:18:7: error: `Cat` doesn't implement method `speak` of interface `Animal`
16 | }
17 | a := Animal(Dog{})
18 | if a is Cat {
| ~~
19 | println('not cool either')
20 | }