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

Comments

@fasterthanlime
Copy link
Collaborator

commented Jul 9, 2015

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

This comment has been minimized.

Copy link
Collaborator Author

commented Jul 9, 2015

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

@fasterthanlime

This comment has been minimized.

Copy link
Collaborator Author

commented Jul 9, 2015

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
Projects
None yet
1 participant
You can’t perform that action at this time.