mirror of https://github.com/golang/go.git
make bugs not fail
R=r DELTA=6 (0 added, 0 deleted, 6 changed) OCL=16110 CL=16114
This commit is contained in:
parent
cd49927ca7
commit
785afb0847
|
|
@ -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 @@
|
||||||
// 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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue