-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generator fails with partial classes #9
Comments
Hi @powerdude , thanks for reporting this. CS8785 is not issued by the Route Generator, it's a warning from the Roslyn compiler platform. The Route Generator seems to throw an unhandled exception due to a duplicate key. I'll look into this. Cheers |
Fixed with 1.0.3 |
Sorry, one more thing was discovered once this issue was fixed. Errors are generated for the following. internal abstract class BaseContentPage<T> : ContentPage where T : BaseViewModel
{
protected BaseContentPage(T viewModel, string pageTitle)
{
base.BindingContext = viewModel;
Title = pageTitle;
}
protected new T BindingContext => (T)base.BindingContext;
} I can work work around it temporarily by renaming the class. |
I opened a separate issue for this: #10. |
Hi,
If your code has something like the following:
The following warning is generated:
This should probably be an error though since no file is actually generated.
The text was updated successfully, but these errors were encountered: