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

Accessing generic member requires explicit cast, but shouldn't #889

Closed
fasterthanlime opened this issue Jul 9, 2015 · 2 comments
Closed
Milestone

Comments

@fasterthanlime
Copy link
Collaborator

Test:

use sam-assert

describe("accessing generic member should not require a cast", ||
    g := Gift<String> new("hi")
    g tuvalu println()
)

Gift: class <T> {
    tuvalu: T
    init: func (=tuvalu)
}

Expected behaviour: pass
Current behaviour: compiled error (you can't call methods on generic types, blah)

@fasterthanlime
Copy link
Collaborator Author

Got a 90% fix for that, just shouldn't do it in case of lhs.

@fasterthanlime
Copy link
Collaborator Author

Might be a dupe of #361

Edit: nope, different issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant