]> Cypherpunks repositories - gostls13.git/commitdiff
bug 145
authorKen Thompson <ken@golang.org>
Tue, 28 Apr 2009 19:28:31 +0000 (12:28 -0700)
committerKen Thompson <ken@golang.org>
Tue, 28 Apr 2009 19:28:31 +0000 (12:28 -0700)
R=r
OCL=27979
CL=27979

src/cmd/gc/go.y
test/fixedbugs/bug145.go [moved from test/bugs/bug145.go with 100% similarity]
test/golden.out

index 47482a00ec4bd8dc7e735439cf5c95232adfe05f..74475b4b373df4bbd4ca67dcc155c0c003cbba4a 100644 (file)
@@ -1654,6 +1654,10 @@ exprsym3:
        {
                $$ = newname($1);
        }
+|      LATYPE
+       {
+               $$ = newname($1);
+       }
 
 exprsym3_list_r:
        exprsym3
similarity index 100%
rename from test/bugs/bug145.go
rename to test/fixedbugs/bug145.go
index 752691295c92809dc56b8a4b48e88b38daac941d..b3cc4fb54334c0ad8c1a430cb1aeb92f3625ef6c 100644 (file)
@@ -121,10 +121,6 @@ bugs/bug140.go:6: syntax error near L1
 bugs/bug140.go:7: syntax error near L2
 BUG should compile
 
-=========== bugs/bug145.go
-bugs/bug145.go:8: t is type, not var
-BUG should compile
-
 =========== fixedbugs/bug016.go
 fixedbugs/bug016.go:7: constant -3 overflows uint