Skip to content
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

@typeparam is considered as a local variable #7094

Closed
DoctorKrolic opened this issue Aug 2, 2022 · 0 comments · Fixed by #8909
Closed

@typeparam is considered as a local variable #7094

DoctorKrolic opened this issue Aug 2, 2022 · 0 comments · Fixed by #8909
Labels
area-compiler Umbrella for all compiler issues bug Something isn't working

Comments

@DoctorKrolic
Copy link
Contributor

devenv_kGkl76nqNM

The reason is because razor compiler generates this code:

#line <line number here> "<Path to a razor file here>"
global::System.Object T = null!;

#line default

This makes it very confusing when using @typeparam feature. Please fix

@chsienki chsienki added the area-compiler Umbrella for all compiler issues label Oct 28, 2022
@chsienki chsienki transferred this issue from dotnet/razor-compiler Oct 28, 2022
@ghost ghost added the untriaged label Oct 28, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Aug 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-compiler Umbrella for all compiler issues bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants