Commit 8327b541 authored by Rob Pike's avatar Rob Pike

make reflect compile again

R=rsc
DELTA=9  (4 added, 4 deleted, 1 changed)
OCL=17753
CL=17755
parent 4712165b
...@@ -243,7 +243,7 @@ type ChanTypeStruct struct { ...@@ -243,7 +243,7 @@ type ChanTypeStruct struct {
} }
func NewChanTypeStruct(name string, dir int, elem *StubType) *ChanTypeStruct { func NewChanTypeStruct(name string, dir int, elem *StubType) *ChanTypeStruct {
return &NewChanTypeStruct{name, elem, dir} return &ChanTypeStruct{name, elem, dir}
} }
func (t *ChanTypeStruct) Kind() int { func (t *ChanTypeStruct) Kind() int {
......
...@@ -148,14 +148,14 @@ export type Int64Value interface { ...@@ -148,14 +148,14 @@ export type Int64Value interface {
Type() Type; Type() Type;
} }
func Int64Creator(typ Type, addr Addr) Value {
return &Int64ValueStruct{addr}
}
type Int64ValueStruct struct { type Int64ValueStruct struct {
addr Addr addr Addr
} }
func Int64Creator(typ Type, addr Addr) Value {
return &Int64ValueStruct{addr}
}
func (v *Int64ValueStruct) Kind() int { func (v *Int64ValueStruct) Kind() int {
return Int64Kind return Int64Kind
} }
......
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