Just wondering, is type inference allowed on method?