Skip to content

Commit 45afa57

Browse files
committed
review: add one std lib import
1 parent a3da65c commit 45afa57

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/testdata/gochecksumtype.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
//golangcitest:args -Egochecksumtype
22
package testdata
33

4+
import (
5+
"log"
6+
)
7+
48
//sumtype:decl
59
type SumType interface{ isSumType() }
610

@@ -22,6 +26,7 @@ func sumTypeTest() {
2226
switch sum.(type) { // want "exhaustiveness check failed for sum type.*SumType.*missing cases for Two"
2327
case One:
2428
default:
29+
log.Println("??")
2530
panic("??")
2631
}
2732

0 commit comments

Comments
 (0)