a103499a63
This makes the following program valid: ---- package main import ( "fmt" "golang.org/x/mobile/event/size" ) func foo() size.Event { return size.Event{} } func main() { fmt.Println(foo().Bounds()) } ---- Previously, you would get: ./main.go:12: cannot call pointer method on foo() ./main.go:12: cannot take the address of foo() Change-Id: I2801d18a04d56d1c7496cb008531d078490ccf86 Reviewed-on: https://go-review.googlesource.com/18356 Reviewed-by: David Crawshaw <crawshaw@golang.org> |
||
---|---|---|
.. | ||
size.go |