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.
garble/testdata/scripts/syntax.txt

26 lines
279 B
Plaintext

garble build main.go
exec ./main
cmp stderr main.stderr
-- main.go --
package main
import "go/ast"
var V interface{}
type T struct{
ast.Node
}
func main() {
switch V := V.(type) {
case int:
var _ int = V
case nil:
println("nil case")
}
}
-- main.stderr --
nil case