| 1 | vlib/v/checker/tests/option_str_call.vv:7:10: error: Option type `net.html.Tag` cannot be called directly, you should unwrap it first |
| 2 | 5 | footer := doc.get_tags_by_class_name('Box-footer')[0] |
| 3 | 6 | invalid := footer.get_tag_by_class_name('invalid') |
| 4 | 7 | println(invalid.str()) |
| 5 | | ~~~~~~~ |
| 6 | 8 | } |
| 7 | vlib/v/checker/tests/option_str_call.vv:7:2: error: `println` can not print void expressions |
| 8 | 5 | footer := doc.get_tags_by_class_name('Box-footer')[0] |
| 9 | 6 | invalid := footer.get_tag_by_class_name('invalid') |
| 10 | 7 | println(invalid.str()) |
| 11 | | ~~~~~~~~~~~~~~~~~~~~~~ |
| 12 | 8 | } |
| 13 | |