memoize def foo(arg) : Hash(String, String)
{"yo" => arg}
end
This will raise an error that looks like
There was a problem expanding macro 'memoize'
Called macro defined in eval:2:3
Which expanded to:
> 2 | Hash(String, String),
> 3 |
> 4 | ,
^
Error: unexpected token: ","
This doesn't really tell you what's going on. What it should say is "Each argument to memoize needs to have a type restriction" and then show the example.
If you have
This will raise an error that looks like
This doesn't really tell you what's going on. What it should say is "Each argument to memoize needs to have a type restriction" and then show the example.