Commit 785afb08 authored by Russ Cox's avatar Russ Cox

make bugs not fail

R=r
DELTA=6  (0 added, 0 deleted, 6 changed)
OCL=16110
CL=16114
parent cd49927c
...@@ -30,7 +30,7 @@ func main() { ...@@ -30,7 +30,7 @@ func main() {
i := NewI(0); i := NewI(0);
Use(i); Use(i);
print("done1\n"); print("done1\n");
// Again, without temporary // Again, without temporary
// Crashes because x.F is 0. // Crashes because x.F is 0.
Use(NewI(0)); Use(NewI(0));
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package main package main
import ip "ip" import os "os"
func f() (ip int) { func f() (os int) {
// In the next line "ip" should refer to the result variable, not // In the next line "os" should refer to the result variable, not
// to the package. // to the package.
v := ip.ParseIP("") // ERROR "undefined" v := os.Open("", 0, 0) // ERROR "undefined"
return 0 return 0
} }
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