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

Closed
fasterthanlime opened this Issue Jul 9, 2015 · 2 comments

Projects

None yet

1 participant

@fasterthanlime
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
Collaborator

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

@fasterthanlime
Collaborator

Might be a dupe of #361

Edit: nope, different issue

@fasterthanlime fasterthanlime modified the milestone: 0.9.10 Jul 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment