12 lines
120 B
V
12 lines
120 B
V
|
type Bar = BarA | BarB
|
||
|
|
||
|
struct BarA {}
|
||
|
|
||
|
struct BarB {}
|
||
|
|
||
|
fn main() {
|
||
|
mut bar := []Bar{}
|
||
|
bar << ['hey']
|
||
|
bar << 'hey'
|
||
|
}
|