Closed JSAbrahams closed 2 years ago
def some_higher_order(self, fun: Int -> Int) -> Int? => fun(10) def fancy(self) -> Int => self.some_higher_order(\x: Int => x * 2)
The above should fail because body is nullable, whereas the function signature does say that the return type is integer.
How to Reproduce
Expected behavior
The above should fail because body is nullable, whereas the function signature does say that the return type is integer.