You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
We have code that prevents @model and @inherits from being specified in the same page. However this check happens at parse time. Consequently specifying an @inherits MyBase<TModel> in _ViewImports and @model CustomModel doesn't produce an error. Instead, the @model wins and resets the base type to the default (RazorPage<>).
This seems like a reasonable thing to do - we shouldn't error on it.
We have code that prevents
@model
and@inherits
from being specified in the same page. However this check happens at parse time. Consequently specifying an@inherits MyBase<TModel>
in _ViewImports and@model CustomModel
doesn't produce an error. Instead, the@model
wins and resets the base type to the default (RazorPage<>
).This seems like a reasonable thing to do - we shouldn't error on it.
Related: #3143
The text was updated successfully, but these errors were encountered: