Commit 4ddcb0ea authored by Robert Griesemer's avatar Robert Griesemer

fix for gofmt rewrite matcher bug

R=rsc
CC=golang-dev
https://golang.org/cl/179096
parent 6a4b2492
......@@ -134,6 +134,9 @@ func match(m map[string]reflect.Value, pattern, val reflect.Value) bool {
p := reflect.Indirect(pattern)
v := reflect.Indirect(val)
if p == nil || v == nil {
return p == nil && v == nil
}
switch p := p.(type) {
case *reflect.SliceValue:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment