0
1
mirror of https://github.com/golang/go synced 2025-05-25 15:00:09 +00:00

make bugs not fail

R=r
DELTA=6  (0 added, 0 deleted, 6 changed)
OCL=16110
CL=16114
This commit is contained in:
Russ Cox
2008-09-29 13:16:22 -07:00
parent cd49927ca7
commit 785afb0847
2 changed files with 5 additions and 5 deletions

@ -30,7 +30,7 @@ func main() {
i := NewI(0);
Use(i);
print("done1\n");
// Again, without temporary
// Crashes because x.F is 0.
Use(NewI(0));

@ -5,10 +5,10 @@
// license that can be found in the LICENSE file.
package main
import ip "ip"
func f() (ip int) {
// In the next line "ip" should refer to the result variable, not
import os "os"
func f() (os int) {
// In the next line "os" should refer to the result variable, not
// to the package.
v := ip.ParseIP("") // ERROR "undefined"
v := os.Open("", 0, 0) // ERROR "undefined"
return 0
}