mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
10 lines
546 B
Plaintext
10 lines
546 B
Plaintext
vlib/v/parser/tests/inline_sum_type_option_err.vv:1:11: warning: inline sum types have been deprecated and will be removed on January 1, 2023 due to complicating the language and the compiler too much; define named sum types with `type Foo = Bar | Baz` instead
|
|
1 | fn foo() ?string | int {
|
|
| ~~~~~~
|
|
2 | return 0
|
|
3 | }
|
|
vlib/v/parser/tests/inline_sum_type_option_err.vv:1:10: error: an inline sum type cannot be an Option
|
|
1 | fn foo() ?string | int {
|
|
| ~~~~~~~~~~~~~
|
|
2 | return 0
|
|
3 | } |