ooc-lang / rock

:ocean: self-hosted ooc compiler that generates c99
http://ooc-lang.org/
MIT License
401 stars 40 forks source link

Infer template parameters the same way we deduce generics #961

Open alexnask opened 8 years ago

alexnask commented 8 years ago

For example, make this work:

Foo: cover template <T> {
    val: T

    init: func@ (=val)
}

foo := Foo new(42)