magic-lang / rock

ooc compiler written in ooc
http://ooc-lang.org/
MIT License
14 stars 4 forks source link

Improvements to type inference + bug fixes #24

Closed thomasfanell closed 8 years ago

thomasfanell commented 8 years ago

Notable changes:

In some cases, we are still required to qualify S, such as when S is used in an argument:

// this works
map: func <S> (function: Func(T) -> S) -> S
// error Not enough info to resolve return type S of function call
fold: func <S> (function: Func(T, S) -> S, initial: S) -> S
// this works
fold: func <S> (S: Class, function: Func(T, S) -> S, initial: S) -> S