mirror of
https://github.com/golang/go
synced 2024-11-24 14:00:15 -07:00
test: enable method expression tests in ddd.go
R=golang-dev, gri, rsc CC=golang-dev https://golang.org/cl/5769044
This commit is contained in:
parent
72faa0303e
commit
b514f0b906
@ -219,7 +219,6 @@ func main() {
|
|||||||
println("s{&u}.Sum", x)
|
println("s{&u}.Sum", x)
|
||||||
panic("fail")
|
panic("fail")
|
||||||
}
|
}
|
||||||
/* TODO(rsc): Enable once nested method expressions work.
|
|
||||||
if x := (*U).Sum(&U{}, 1, 3, 5, 2); x != 11 {
|
if x := (*U).Sum(&U{}, 1, 3, 5, 2); x != 11 {
|
||||||
println("(*U).Sum", x)
|
println("(*U).Sum", x)
|
||||||
panic("fail")
|
panic("fail")
|
||||||
@ -228,5 +227,4 @@ func main() {
|
|||||||
println("U.Sum", x)
|
println("U.Sum", x)
|
||||||
panic("fail")
|
panic("fail")
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user