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

go/types: unhelpful error in type assertion with typo #4967

Closed
remyoudompheng opened this issue Mar 2, 2013 · 2 comments
Closed

go/types: unhelpful error in type assertion with typo #4967

remyoudompheng opened this issue Mar 2, 2013 · 2 comments

Comments

@remyoudompheng
Copy link
Contributor

What steps will reproduce the problem?
1. Run go.exp/gotype on

package main

import (
    "io"
)

func main() {
    var x io.Reader
    _, ok := x.(*io.MultiRider)
    println(ok)
}

What is the expected output? What do you see instead?

Expected:
something saying io.Multirider does not exist

Got:
test.go:9:15: cannot refer to unexported io.MultiRider
(io.Multirider seems perfectly exported to me!)

Please use labels and text to provide additional information.
@rsc
Copy link
Contributor

rsc commented Mar 12, 2013

Comment 1:

[The time for maybe has passed.]

Labels changed: removed go1.1maybe.

@griesemer
Copy link
Contributor

Comment 2:

This issue was closed by revision golang/exp@233982a.

Status changed to Fixed.

zend pushed a commit to go-src/inotify that referenced this issue Apr 3, 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