Skip to content

gc: misreported ideal types #2451

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

Closed
rsc opened this issue Nov 12, 2011 · 10 comments
Closed

gc: misreported ideal types #2451

rsc opened this issue Nov 12, 2011 · 10 comments
Milestone

Comments

@rsc
Copy link
Contributor

rsc commented Nov 12, 2011

libra=; cat x.go
package main

func f() error { return 0 }
libra=; 6g x.go
x.go:3: cannot use 0 (type ideal) as type error in return argument:
    int does not implement error (missing Error method)
libra=; 

should say int, not ideal.  a call to defaultlit is missing.
@lvdlvd
Copy link

lvdlvd commented Nov 14, 2011

Comment 1:

Labels changed: added compilerbug.

Owner changed to @lvdlvd.

@rsc
Copy link
Contributor Author

rsc commented Dec 9, 2011

Comment 2:

Labels changed: added priority-later, removed priority-medium.

@rsc
Copy link
Contributor Author

rsc commented Dec 12, 2011

Comment 3:

Labels changed: added priority-go1.

@lvdlvd
Copy link

lvdlvd commented Dec 13, 2011

Comment 4:

Also fixed by http://code.google.com/p/go/source/detail?r=646288f72acd

Status changed to Fixed.

@lvdlvd
Copy link

lvdlvd commented Dec 13, 2011

Comment 5:

Status changed to Accepted.

@lvdlvd
Copy link

lvdlvd commented Dec 13, 2011

Comment 6:

Status changed to Started.

@remyoudompheng
Copy link
Contributor

Comment 7:

Did you have a look at CL 5467063 ?

@lvdlvd
Copy link

lvdlvd commented Dec 13, 2011

Comment 8:

sorry, i missed that one. thanks!
let me think if i like your solution better.

@lvdlvd
Copy link

lvdlvd commented Dec 14, 2011

Comment 9:

yes i do. adopted it in 5372105

@lvdlvd
Copy link

lvdlvd commented Dec 14, 2011

Comment 10:

This issue was closed by revision e14d1d7.

Status changed to Fixed.

@rsc rsc added fixed labels Dec 14, 2011
@rsc rsc added this to the Go1 milestone Apr 10, 2015
@rsc rsc removed the priority-go1 label Apr 10, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
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