]> Cypherpunks repositories - gostls13.git/commitdiff
make bugs not fail
authorRuss Cox <rsc@golang.org>
Mon, 29 Sep 2008 20:16:22 +0000 (13:16 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 29 Sep 2008 20:16:22 +0000 (13:16 -0700)
R=r
DELTA=6  (0 added, 0 deleted, 6 changed)
OCL=16110
CL=16114

test/bugs/bug099.go
test/bugs/bug107.go

index 3b26475dee50db8b7107669961e96e3a0cf9dc19..eddfcb808800ae4faa32803cff33136b8550a4d1 100644 (file)
@@ -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));
index 05db2e58fc38e7139cebcc3a8f7c34c5807a266c..d08c440459b6ef01c8a26805df1c3364bd9c3ad8 100644 (file)
@@ -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
 }