Commit 9d5ed174 authored by David Symonds's avatar David Symonds

exp/template: add missing dotNode case.

R=r
CC=golang-dev
https://golang.org/cl/4672044
parent 9495dd31
......@@ -447,6 +447,8 @@ func (s *state) evalEmptyInterface(data reflect.Value, typ reflect.Type, n node)
switch n := n.(type) {
case *boolNode:
return reflect.ValueOf(n.true)
case *dotNode:
return data
case *fieldNode:
return s.evalFieldNode(data, n, nil, reflect.Value{})
case *identifierNode:
......
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