Function definitions without return types failed to parse.
Changed "let" keyword to "val".