Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
8327b541
Commit
8327b541
authored
Oct 24, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make reflect compile again
R=rsc DELTA=9 (4 added, 4 deleted, 1 changed) OCL=17753 CL=17755
parent
4712165b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
type.go
src/lib/reflect/type.go
+1
-1
value.go
src/lib/reflect/value.go
+4
-4
No files found.
src/lib/reflect/type.go
View file @
8327b541
...
@@ -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
&
New
ChanTypeStruct
{
name
,
elem
,
dir
}
return
&
ChanTypeStruct
{
name
,
elem
,
dir
}
}
}
func
(
t
*
ChanTypeStruct
)
Kind
()
int
{
func
(
t
*
ChanTypeStruct
)
Kind
()
int
{
...
...
src/lib/reflect/value.go
View file @
8327b541
...
@@ -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
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment