Closed
Description
minimized code
given (Int => Int) = identity[Int]
Produces three errors:
end of statement expected but '(' found
';' expected, but identifier found
anonymous instance must implement a type or have at least one extension method
expectation
The code above should work, just like the below does:
type IntFunc = Int => Int
given IntFunc = identity[Int]