Use the return value of a function to infer a type for the "ret" statement
3b74c58
Opened by Patrick Walton at
Currently, statements like "ret none;" don't work because the typechecker isn't smart enough to infer the type parameter from the explicit function signature.
WONTFIX (not required for bootstrapping, should work in rustc already; reopen if not)
Graydon Hoare at 2011-01-27 01:58:54