Thanks for the tip! Fixed this; just missed this when writing the example.
This error would only be found if you wrote a test for it. The framework doesn't have an AI integration that checks whether or not your types are consistent with real world applications... but could.