An extractor class to create and pattern match with syntax MethodType(params, respte)
Here, params is a potentially empty list of parameter symbols of the method,
and restpe is the result type of the method. If the method is curried, restpe would
be another MethodType.
Note: MethodType(Nil, Int) would be the type of a method defined with an empty parameter list.
An extractor class to create and pattern match with syntax
MethodType(params, respte)Here,paramsis a potentially empty list of parameter symbols of the method, andrestpeis the result type of the method. If the method is curried,restpewould be anotherMethodType. Note:MethodType(Nil, Int)would be the type of a method defined with an empty parameter list.If the method is completely parameterless, as in
its type is a
NullaryMethodType.