diff --git a/vlib/v/debug/tests/sumtype.vv b/vlib/v/debug/tests/sumtype.vv index 66ffe8bcfdcfea..21b7115df4b5e4 100644 --- a/vlib/v/debug/tests/sumtype.vv +++ b/vlib/v/debug/tests/sumtype.vv @@ -20,9 +20,11 @@ fn sumtype() { b := ?MySum(Test{ a: 1 }) - if b is Test { - dump(b) - $dbg; + if b != none { + if b is Test { + dump(b) + $dbg; + } } }