2020-11-28 22:40:40 +01:00
|
|
|
vlib/v/checker/tests/sum_type_ref_variant_err.vv:7:33: error: sum type cannot hold a reference type
|
|
|
|
5 | foo string
|
|
|
|
6 | }
|
|
|
|
7 | type Alphabet1 = Abc | string | &Xyz
|
|
|
|
| ~~~~
|
|
|
|
8 | type Alphabet2 = Abc | &Xyz | string
|
|
|
|
9 | type Alphabet3 = &Xyz | Abc | string
|
|
|
|
vlib/v/checker/tests/sum_type_ref_variant_err.vv:8:24: error: sum type cannot hold a reference type
|
|
|
|
6 | }
|
|
|
|
7 | type Alphabet1 = Abc | string | &Xyz
|
|
|
|
8 | type Alphabet2 = Abc | &Xyz | string
|
|
|
|
| ~~~~
|
|
|
|
9 | type Alphabet3 = &Xyz | Abc | string
|
|
|
|
vlib/v/checker/tests/sum_type_ref_variant_err.vv:9:18: error: sum type cannot hold a reference type
|
|
|
|
7 | type Alphabet1 = Abc | string | &Xyz
|
|
|
|
8 | type Alphabet2 = Abc | &Xyz | string
|
|
|
|
9 | type Alphabet3 = &Xyz | Abc | string
|
2022-01-19 01:23:25 +01:00
|
|
|
| ~~~~
|