Suggest that variable with name "page" can't be used in an chstml file #10325
Labels
area-compiler
Umbrella for all compiler issues
author: migration bot 🤖
The issue was created by a issue mover bot. The author may not be the actual author
needs more info
no recent activity
This issue has been moved from a ticket on Developer Community.
In asp.net core project, cshtml file,
if you have this code:
{
var page = 1;
}
@page
You'll get all kinds of errors, because @page is a reserved word.
As long as you don't try calling @page you're actually fine.
Original Comments
Feedback Bot on 2/8/2024, 05:40 PM:
(private comment, text removed)
The text was updated successfully, but these errors were encountered: