Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Apr 16, 2023
1 parent 64a879c commit c2bc6c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/testdata/gochecksumtype.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ func sumTypeTest() {
switch sum.(type) { // want "exhaustiveness check failed for sum type.*SumType.*missing cases for Two"
case One:
default:
log.Println("??")
panic("??")
}

log.Println("??")

switch sum.(type) {
case One:
case Two:
Expand Down

0 comments on commit c2bc6c2

Please sign in to comment.