Nonsensical error message when omitting 'of'
Posted: Fri Jun 28, 2013 6:01 am
The following code produced this error message "The method "method" is expecting 1 argument, but no arguments are being supplied in this call. The declaration is "method(argument as T)"". I would expect an error like "Incorrect type specified "method<int>". Did you mean "method<of int>"?" I don't know, something like that.
- Code: Select all
class Program
def main
.method<int>(14)
def method<of T>(argument as T)
pass