prakhar1989 / JSJS

A strongly typed language for the web!
http://jsjs-lang.org
MIT License
40 stars 5 forks source link

Better error for wrong generic syntax #34

Closed prakhar1989 closed 8 years ago

prakhar1989 commented 8 years ago

Using generic types T in functions not using the correct syntax i.e. [T] gives an error like below - Type error: expected value of type 'list T', got a value of type 'list num' instead

This should be changed to something more helpful.