vxx2 / vlib / v / checker / tests / option_str_call.out
12 lines · 12 sloc · 638 bytes · 4f6ebfb33f2050a445748b72cb35db4f1db31ba8
Raw
1vlib/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 | }
7vlib/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