- added item to TODO list in go_spec

- filed a bug

R=r
OCL=15517
CL=15517
This commit is contained in:
Robert Griesemer 2008-09-18 23:16:22 -07:00
parent 2b70c6add3
commit 6a0fb60866
2 changed files with 16 additions and 0 deletions

View 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

14
test/bugs/bug103.go Normal file
View file

@ -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
}