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

Implicit return in generic functions #5

Closed nddrylliog closed 15 years ago

nddrylliog commented 15 years ago
func < T > myFunc -> T {
  "value" as T // implicit return
}

doesn't work, but it should.

'nuff said.

nddrylliog commented 15 years ago

Fixed.

http://github.com/amoswenger/ooc/commit/24109116bb09f3b55e1d1c8625b59396fee50c3c