diff options
| author | Ondřej Surý <ondrej@sury.org> | 2011-04-28 10:35:15 +0200 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2011-04-28 15:42:05 +0200 |
| commit | 912927f743d96110c4270794358f2082258a4199 (patch) | |
| tree | c74b151f1435a27ab06c5938b523af52dfa1621a /test/interface/pointer.go | |
| parent | 631766505c3056a583bf0876edc73b72c600c5e5 (diff) | |
| download | golang-912927f743d96110c4270794358f2082258a4199.tar.gz | |
Imported Upstream version 2011.04.27
Diffstat (limited to 'test/interface/pointer.go')
| -rw-r--r-- | test/interface/pointer.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/interface/pointer.go b/test/interface/pointer.go index e628b558e..076469c8d 100644 --- a/test/interface/pointer.go +++ b/test/interface/pointer.go @@ -33,4 +33,5 @@ func main() { print("call addinst\n") var x Inst = AddInst(new(Start)) // ERROR "pointer to interface" print("return from addinst\n") + var x *Inst = new(Start) // ERROR "pointer to interface" } |
