mirror of
https://github.com/golang/go
synced 2024-11-22 05:44:41 -07:00
fix build: literal types cannot be parenthesized anymore
R=rsc CC=golang-dev https://golang.org/cl/1849055
This commit is contained in:
parent
e473f42b2d
commit
ed8c23149f
@ -172,13 +172,6 @@ func _() {
|
||||
_ = [...]T{}
|
||||
_ = []T{}
|
||||
_ = map[int]T{}
|
||||
|
||||
_ = (T){}
|
||||
_ = (struct{}){}
|
||||
_ = ([10]T){}
|
||||
_ = ([...]T){}
|
||||
_ = ([]T){}
|
||||
_ = (map[int]T){}
|
||||
}
|
||||
|
||||
|
||||
|
@ -172,13 +172,6 @@ func _() {
|
||||
_ = [...]T{}
|
||||
_ = []T{}
|
||||
_ = map[int]T{}
|
||||
|
||||
_ = (T){}
|
||||
_ = (struct{}){}
|
||||
_ = ([10]T){}
|
||||
_ = ([...]T){}
|
||||
_ = ([]T){}
|
||||
_ = (map[int]T){}
|
||||
}
|
||||
|
||||
|
||||
|
7
src/pkg/go/printer/testdata/expressions.raw
vendored
7
src/pkg/go/printer/testdata/expressions.raw
vendored
@ -172,13 +172,6 @@ func _() {
|
||||
_ = [...]T{}
|
||||
_ = []T{}
|
||||
_ = map[int]T{}
|
||||
|
||||
_ = (T){}
|
||||
_ = (struct{}){}
|
||||
_ = ([10]T){}
|
||||
_ = ([...]T){}
|
||||
_ = ([]T){}
|
||||
_ = (map[int]T){}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user