I am having trouble with some case statements and have tried to reduce the statements down for a bug but then they seem to work. Am I missing something simple?
Here is the case statement that is not compiling.
This fails with the error.
Error: no argument named 'amount'
All three operations have an initializer with and amount argument.
Here is an overly reduced example one with arguments and one without. Both seem to work.