You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
234 B
Plaintext
20 lines
234 B
Plaintext
5 years ago
|
garble build main.go
|
||
|
exec ./main
|
||
|
cmp stderr main.stderr
|
||
|
|
||
|
-- main.go --
|
||
|
package main
|
||
|
|
||
|
var V interface{}
|
||
|
|
||
|
func main() {
|
||
|
switch V := V.(type) {
|
||
|
case int:
|
||
|
var _ int = V
|
||
|
case nil:
|
||
|
println("nil case")
|
||
|
}
|
||
|
}
|
||
|
-- main.stderr --
|
||
|
nil case
|