diff options
author | Russ Cox <rsc@golang.org> | 2009-09-28 14:05:34 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-09-28 14:05:34 -0700 |
commit | a36aa64c8379884f2144694e48f60c223b78b6fb (patch) | |
tree | 518b80232288cd80776cc8a15cc53232c550f669 /test/ken | |
parent | 4e4bce5f40b2605bac47c3c14a17ac09997a93f8 (diff) | |
download | go-a36aa64c8379884f2144694e48f60c223b78b6fb.tar.gz |
disallow interface { x, y() }
R=ken
OCL=35042
CL=35044
Diffstat (limited to 'test/ken')
-rw-r--r-- | test/ken/embed.go | 12 | ||||
-rw-r--r-- | test/ken/interfun.go | 3 |
2 files changed, 8 insertions, 7 deletions
diff --git a/test/ken/embed.go b/test/ken/embed.go index 8f4641e81..5978f7747 100644 --- a/test/ken/embed.go +++ b/test/ken/embed.go @@ -10,12 +10,12 @@ package main type I interface { - test1, - test2, - test3, - test4, - test5, - test6, + test1() int; + test2() int; + test3() int; + test4() int; + test5() int; + test6() int; test7() int; }; diff --git a/test/ken/interfun.go b/test/ken/interfun.go index 876d94128..c508c73c3 100644 --- a/test/ken/interfun.go +++ b/test/ken/interfun.go @@ -18,7 +18,8 @@ type I1 interface type I2 interface { - g,f ()int; + g() int; + f() int; } func |