summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug151.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-05-26 21:11:43 -0700
committerRuss Cox <rsc@golang.org>2009-05-26 21:11:43 -0700
commitf1e411f9525f5d35f40d33ac6326890068ecaf1f (patch)
tree77b8dcd44683e001da7ea93a6f039eaa965e385d /test/fixedbugs/bug151.go
parent92139445bf1545a18cda69e13381c29d88d15fc4 (diff)
downloadgo-f1e411f9525f5d35f40d33ac6326890068ecaf1f.tar.gz
bug151, bug152 -> fixedbugs
R=ken OCL=29425 CL=29427
Diffstat (limited to 'test/fixedbugs/bug151.go')
-rw-r--r--test/fixedbugs/bug151.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/fixedbugs/bug151.go b/test/fixedbugs/bug151.go
new file mode 100644
index 000000000..46546dfe1
--- /dev/null
+++ b/test/fixedbugs/bug151.go
@@ -0,0 +1,21 @@
+// $G $D/$F.go || echo BUG: bug151
+
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package main
+
+type S string
+
+type Empty interface {}
+
+func (v S) Less(e Empty) bool {
+ return v < e.(S);
+}
+
+/*
+bugs/bug151.go:10: illegal types for operand: CALL
+ string
+ S
+*/