]> Cypherpunks repositories - gostls13.git/commitdiff
The scope rules have been changed to say that labels live in a
authorIan Lance Taylor <iant@golang.org>
Wed, 12 Nov 2008 02:17:54 +0000 (18:17 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 12 Nov 2008 02:17:54 +0000 (18:17 -0800)
separate per-function namespace.

R=gri
DELTA=24  (8 added, 16 deleted, 0 changed)
OCL=19006
CL=19057

test/fixedbugs/bug077.go [moved from test/bugs/bug077.go with 60% similarity]
test/golden.out

similarity index 60%
rename from test/bugs/bug077.go
rename to test/fixedbugs/bug077.go
index 97b9d2f45938782c484ea0d330245b77ee31ac1d..ba6e3b77da8b81fad7823013b4a7927baba8ce69 100644 (file)
@@ -8,10 +8,5 @@ package main
 
 func main() {
        var exit int;
-exit:  // this shouldn't be legal
+exit:
 }
-
-/*
-Within a scope, an identifier should have only one association - it cannot be
-a variable and a label at the same time.
-*/
index 3b4fcecfe4260b5d2f380a57f20c3ed625ef4f8b..70b5db270010f29b2895fe2b3b5161cd792ad393 100644 (file)
@@ -97,9 +97,6 @@ bugs/bug064.go:15: illegal types for operand: CALL
        struct { u int; v int }
 BUG: compilation should succeed
 
-=========== bugs/bug077.go
-BUG: known to succeed incorrectly
-
 =========== bugs/bug080.go
 bugs/bug080.go:12: illegal types for operand: CALL
        int