1
0
mirror of https://github.com/golang/go synced 2024-09-30 14:18:32 -06:00
go/refactor/eg/testdata/H1.go
Alan Donovan 9333b8f458 refactor/eg: fix crash while unifying wildcard with KeyValueExpr, which has no type
+ tests.

Fixes issue golang/go#10923

Change-Id: I0813cdfbb447bbd9f579bb1998b355a3179a7e79
Reviewed-on: https://go-review.googlesource.com/10332
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
2015-05-29 16:42:57 +00:00

13 lines
259 B
Go

// +build ignore
package H1
import "go/ast"
func example() {
_ = ast.BadExpr{From: 123, To: 456} // no match
_ = ast.BadExpr{123, 456} // match
_ = ast.BadExpr{From: 123} // no match
_ = ast.BadExpr{To: 456} // no match
}