Rock does not type check arguments of generic type that was infered in the same call #826

Closed
shamanas opened this Issue Sep 21, 2014 · 1 comment

Projects

None yet

2 participants

@shamanas
Collaborator

An example should be simpler to understand:

// This compiles
Foo: class <T> {
    init: func(a, b: T)
}

foo := Foo new(1, "lol")

// This too
f: func <T> (a, b: T)

f("what", 12)
@fasterthanlime
Collaborator

Looks like it was fixed at the same time as #825

screen shot 2015-07-10 at 20 59 09

@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