struct Test {
	a MySum
}

struct Test2 {
	a ?MySum
}

type MySum = Test | bool | int

fn sumtype() {
	a := MySum(Test{
		a: false
	})
	if a is Test {
		dump(a)
		$dbg;
	}

	b := ?MySum(Test{
		a: 1
	})
	if b is Test {
		dump(b)
		$dbg;
	}
}

fn main() {
	sumtype()
}
