This website requires JavaScript.
Explore
Help
Register
Sign In
qbit
/
go
Watch
1
Star
0
Fork
0
You've already forked go
mirror of
https://github.com/golang/go
synced
2024-11-14 14:50:23 -07:00
Code
Releases
Activity
2010189407
go
/
test
/
fixedbugs
/
issue4326.dir
/
z.go
8 lines
84 B
Go
Raw
Normal View
History
Unescape
Escape
test/run: handle compiledir and errorcheckdir with multi-file packages Multiple files with the same package all get compiled together. R=golang-dev, iant, dave CC=golang-dev https://golang.org/cl/7005053
2013-01-02 13:31:49 -07:00
package
z
cmd/gc: annotate local variables with unique ids for inlining Avoids problems with local declarations shadowing other names. We write a more explicit form than the incoming program, so there may be additional type annotations. For example: int := "hello" j := 2 would normally turn into var int string = "hello" var j int = 2 but the int variable shadows the int type in the second line. This CL marks all local variables with a per-function sequence number, so that this would instead be: var int·1 string = "hello" var j·2 int = 2 Fixes #4326. R=ken2 CC=golang-dev https://golang.org/cl/6816100
2012-11-07 07:59:19 -07:00
import
"./p2"
func
main
(
)
{
p2
.
NewO
(
)
.
RemoveOption
(
"hello"
,
"world"
)
}
Copy Permalink