fasterthanlime / jooc-legacy

:crocodile: The historical, initial implementation of an ooc compiler in Java
http://ooc-lang.org/
MIT License
115 stars 4 forks source link

Generics/Pattern Matching: error when getting val from different function #22

Closed showstopper closed 15 years ago

showstopper commented 15 years ago

http://paste.pocoo.org/show/144129/ -> ooc_tmp/bugs/test.c:24: error: incompatible types when assigning to type »langString« from type »langDouble« ooc_tmp/bugs/test.c:26: error: incompatible types when assigning to type »langString« from type »langBool«

nddrylliog commented 15 years ago

Fififixed. thanks for reporting =) It was a more generic issue with assigning from a generic typed expr to a non-generic typed var. Example in tests/generics/018-*