mirror of
https://github.com/golang/go
synced 2024-11-22 03:24:41 -07:00
- added item to TODO list in go_spec
- filed a bug R=r OCL=15517 CL=15517
This commit is contained in:
parent
2b70c6add3
commit
6a0fb60866
@ -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
14
test/bugs/bug103.go
Normal 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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user