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

wrong use of implicit return values causes strange error message #21

Open fredreichbier opened 15 years ago

fredreichbier commented 15 years ago
f: func -> Bool {
    g()
}

g: func {}

makes:

./implicit-return-error.ooc:2:5: [ERROR] Trying to use void function g() as an expression!
    g()
    ^

I think there should be a better message :)