]> Cypherpunks repositories - gostls13.git/commitdiff
- added item to TODO list in go_spec
authorRobert Griesemer <gri@golang.org>
Fri, 19 Sep 2008 06:16:22 +0000 (23:16 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 19 Sep 2008 06:16:22 +0000 (23:16 -0700)
- filed a bug

R=r
OCL=15517
CL=15517

doc/go_spec.txt
test/bugs/bug103.go [new file with mode: 0644]

index c82919272f1169b1cc5261db5d283b7ba1418307..9561e924a610d737bb2a18dbf2ce0940a6ae8ce2 100644 (file)
@@ -52,6 +52,8 @@ Open issues according to gri:
 [ ] iant suggests to use abstract/precise int for len(), cap() - good idea
     (issue: what happens in len() + const - what is the type?)
 [ ] Do composite literals create a new literal each time (gri thinks yes)
+[ ] should binary <- be at lowest precedence level? when is a send/receive non-blocking?
+[ ] consider syntactic notation for composite literals to make them parseable w/o type information
 -->
 
 Contents
diff --git a/test/bugs/bug103.go b/test/bugs/bug103.go
new file mode 100644 (file)
index 0000000..c350a53
--- /dev/null
@@ -0,0 +1,14 @@
+// errchk $G $D/$F.go
+
+// 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
+
+func f() /* no return type */ {}
+
+func main() {
+       x := f();  // should not compile
+}
+