Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chan<- (chan T) declaration gives syntax error when imported #364

Closed
rogpeppe opened this issue Dec 1, 2009 · 4 comments
Closed

chan<- (chan T) declaration gives syntax error when imported #364

rogpeppe opened this issue Dec 1, 2009 · 4 comments

Comments

@rogpeppe
Copy link
Contributor

rogpeppe commented Dec 1, 2009

cat > chanbug.go << EOF
package chanbug
var C chan<- (chan int);
EOF

cat > chanbug2.go << EOF
package Bar
import "chanbug"
EOF

8g chanbug.go
8g -I . chanbug2.go

the second compile gives me:

chanbug2.go:4: syntax error near chan


% echo $GOOS
darwin
% echo $GOARCH
386
% hg identify
382a7bb58c03+ tip
@griesemer
Copy link
Contributor

Comment 1:

Owner changed to r...@golang.org.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Dec 2, 2009

Comment 2:

Status changed to Started.

@rsc
Copy link
Contributor

rsc commented Dec 2, 2009

Comment 3:

Labels changed: added compilerbug.

@rsc
Copy link
Contributor

rsc commented Dec 3, 2009

Comment 4:

This issue was closed by revision e733766.

Status changed to Fixed.

Merged into issue #-.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants