]> Cypherpunks repositories - gostls13.git/commitdiff
fix build: literal types cannot be parenthesized anymore
authorRobert Griesemer <gri@golang.org>
Thu, 5 Aug 2010 00:58:56 +0000 (17:58 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 5 Aug 2010 00:58:56 +0000 (17:58 -0700)
R=rsc
CC=golang-dev
https://golang.org/cl/1849055

src/pkg/go/printer/testdata/expressions.golden
src/pkg/go/printer/testdata/expressions.input
src/pkg/go/printer/testdata/expressions.raw

index 95e5502d36411cb54f1683fcb69802b57c3896a9..3315f9b0e1696119dc9ca575d5e77fcf551228b0 100644 (file)
@@ -172,13 +172,6 @@ func _() {
        _ = [...]T{}
        _ = []T{}
        _ = map[int]T{}
-
-       _ = (T){}
-       _ = (struct{}){}
-       _ = ([10]T){}
-       _ = ([...]T){}
-       _ = ([]T){}
-       _ = (map[int]T){}
 }
 
 
index 13891d97116fee00aae99253f71b9c0eecb148cc..e4f12af4cd2ea990d0e249d3da76efc850f97e70 100644 (file)
@@ -172,13 +172,6 @@ func _() {
        _ = [...]T{}
        _ = []T{}
        _ = map[int]T{}
-
-       _ = (T){}
-       _ = (struct{}){}
-       _ = ([10]T){}
-       _ = ([...]T){}
-       _ = ([]T){}
-       _ = (map[int]T){}
 }
 
 
index dccc8d122bf4809b50c9d70753938c833907b453..07b649aff722793aa1c16badcd22625d1e2442f3 100644 (file)
@@ -172,13 +172,6 @@ func _() {
        _ = [...]T{}
        _ = []T{}
        _ = map[int]T{}
-
-       _ = (T){}
-       _ = (struct{}){}
-       _ = ([10]T){}
-       _ = ([...]T){}
-       _ = ([]T){}
-       _ = (map[int]T){}
 }