]> Cypherpunks repositories - gostls13.git/commitdiff
make reflect compile again
authorRob Pike <r@golang.org>
Fri, 24 Oct 2008 00:39:15 +0000 (17:39 -0700)
committerRob Pike <r@golang.org>
Fri, 24 Oct 2008 00:39:15 +0000 (17:39 -0700)
R=rsc
DELTA=9  (4 added, 4 deleted, 1 changed)
OCL=17753
CL=17755

src/lib/reflect/type.go
src/lib/reflect/value.go

index cf27da9d4ba7b0a888aa4894ed5f932680b5ae23..506a1a0ca34aba17caabb6cb4db8271352026db5 100644 (file)
@@ -243,7 +243,7 @@ type ChanTypeStruct struct {
 }
 
 func NewChanTypeStruct(name string, dir int, elem *StubType) *ChanTypeStruct {
-       return &NewChanTypeStruct{name, elem, dir}
+       return &ChanTypeStruct{name, elem, dir}
 }
 
 func (t *ChanTypeStruct) Kind() int {
index 32e6211773f6ff50f94e9b34201f17d057947de3..7d6172dadafc2988d87cd0b67f26f626a3e87763 100644 (file)
@@ -148,14 +148,14 @@ export type Int64Value interface {
        Type()  Type;
 }
 
-func Int64Creator(typ Type, addr Addr) Value {
-       return &Int64ValueStruct{addr}
-}
-
 type Int64ValueStruct struct {
        addr    Addr
 }
 
+func Int64Creator(typ Type, addr Addr) Value {
+       return &Int64ValueStruct{addr}
+}
+
 func (v *Int64ValueStruct) Kind() int {
        return Int64Kind
 }