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

The compiler doesn't flag errors in simple 'using' statements. #72496

Closed
RaySilvaP opened this issue Mar 12, 2024 · 0 comments · Fixed by #72589
Closed

The compiler doesn't flag errors in simple 'using' statements. #72496

RaySilvaP opened this issue Mar 12, 2024 · 0 comments · Fixed by #72589
Assignees
Labels
4 - In Review A fix for the issue is submitted for review. Area-Compilers Bug
Milestone

Comments

@RaySilvaP
Copy link

Version Used: .NET 8.0.201

Hello, everyone! I've noticed a really strange behavior from the compiler. It occurred when I used a simplified using statement that looked like this:

using const var obj = new Object();

The compiler didn't flag any errors as it should have. It's strange because with the normal version

using (const var obj = new Object())

the compiler correctly flagged a "CS0822" and a "CS1525". It's as if the compiler ignores errors in simplified using statements.

Expected Behavior:
The compiler should flag a "CS0822" and a "CS1525".
Actual Behavior:
The compiler doesn't flag any errors and when you try to build the application, it finishes with:
(Visual Studio)

MSB6006 "csc.exe" exited with code -2146232797.

or
(Visual Studio Code)

C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error : Process terminated. System.NullReferenceExce
ption: Object reference not set to an instance of an object. [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundNod 
eExtensions.HasErrors[T](ImmutableArray`1 nodeArray) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundBlo 
ck..ctor(SyntaxNode syntax, ImmutableArray`1 locals, ImmutableArray`1 statements, Boolean hasErrors) [D:\dev\Tests\Tests.csproj]     
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundBlo 
ck.SynthesizedNoLocals(SyntaxNode syntax, BoundStatement[] statements) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.RewriteDeclarationUsingStatement(SyntaxNode usingSyntax, BoundLocalDeclaration localDeclaration, BoundBlock tryBlock, SyntaxTo 
ken awaitKeywordOpt, BoundAwaitableInfo awaitOpt, MethodArgumentInfo patternDisposeInfo) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew
riter.MakeDeclarationUsingStatement(SyntaxNode syntax, BoundBlock body, ImmutableArray`1 locals, ImmutableArray`1 declarations, Meth 
odArgumentInfo patternDisposeInfo, BoundAwaitableInfo awaitOpt, SyntaxToken awaitKeyword) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.MakeLocalUsingDeclarationStatement(BoundUsingLocalDeclarations usingDeclarations, ImmutableArray`1 statements) [D:\dev\Tests\T 
ests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitStatementSubList(ArrayBuilder`1 builder, ImmutableArray`1 statements, Int32 startIndex) [D:\dev\Tests\Tests.csproj]       
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitBlock(BoundBlock node) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitStatement(BoundStatement node) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.Rewrite(CSharpCompilation compilation, MethodSymbol method, Int32 methodOrdinal, NamedTypeSymbol containingType, BoundStatemen 
t statement, TypeCompilationState compilationState, SynthesizedSubmissionFields previousSubmissionFields, Boolean allowOmissionOfCon 
ditionalCalls, MethodInstrumentation instrumentation, DebugDocumentProvider debugDocumentProvider, BindingDiagnosticBag diagnostics,
 ImmutableArray`1& codeCoverageSpans, Boolean& sawLambdas, Boolean& sawLocalFunctions, Boolean& sawAwaitInExceptionHandler) [D:\dev\ 
Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.LowerBodyOrInitializer(MethodSymbol method, Int32 methodOrdinal, BoundStatement body, SynthesizedSubmissionFields previousSub 
missionFields, TypeCompilationState compilationState, MethodInstrumentation instrumentation, DebugDocumentProvider debugDocumentProv 
ider, ImmutableArray`1& codeCoverageSpans, BindingDiagnosticBag diagnostics, VariableSlotAllocator& lazyVariableSlotAllocator, Array 
Builder`1 lambdaDebugInfoBuilder, ArrayBuilder`1 lambdaRuntimeRudeEditsBuilder, ArrayBuilder`1 closureDebugInfoBuilder, ArrayBuilder 
`1 stateMachineStateDebugInfoBuilder, StateMachineTypeSymbol& stateMachineTypeOpt) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.CompileMethod(MethodSymbol methodSymbol, Int32 methodOrdinal, ProcessedFieldInitializers& processedInitializers, SynthesizedS 
ubmissionFields previousSubmissionFields, TypeCompilationState compilationState) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.CompileNamedType(NamedTypeSymbol containingType) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.<>c__DisplayClass25_0.<CompileNamedTypeAsync>b__0() [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at System.Environment.FailFast(System.Str
ing, System.Exception) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.FailFast.OnFata 
lException(System.Exception) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.ErrorReporting. 
FatalError.Report(System.Exception, Microsoft.CodeAnalysis.ErrorReporting.ErrorSeverity, Boolean) [D:\dev\Tests\Tests.csproj]        
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.ErrorReporting. 
FatalError.ReportAndPropagateUnlessCanceled(System.Exception, Microsoft.CodeAnalysis.ErrorReporting.ErrorSeverity) [D:\dev\Tests\Tes 
ts.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler+<>c__DisplayClass25_0.<CompileNamedTypeAsync>b__0() [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundNod 
eExtensions.HasErrors[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](S 
ystem.Collections.Immutable.ImmutableArray`1<System.__Canon>) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundBlo 
ck..ctor(Microsoft.CodeAnalysis.SyntaxNode, System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.CSharp.Symbols.Loca 
lSymbol>, System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.CSharp.BoundStatement>, Boolean) [D:\dev\Tests\Tests. 
csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundBlo 
ck.SynthesizedNoLocals(Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.CSharp.BoundStatement[]) [D:\dev\Tests\Tests.csproj 
]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.RewriteDeclarationUsingStatement(Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.CSharp.BoundLocalDeclaration, Micro 
soft.CodeAnalysis.CSharp.BoundBlock, Microsoft.CodeAnalysis.SyntaxToken, Microsoft.CodeAnalysis.CSharp.BoundAwaitableInfo, Microsoft 
.CodeAnalysis.CSharp.MethodArgumentInfo) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.MakeDeclarationUsingStatement(Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.CSharp.BoundBlock, System.Collections. 
Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.CSharp.Symbols.LocalSymbol>, System.Collections.Immutable.ImmutableArray`1<Microso 
ft.CodeAnalysis.CSharp.BoundLocalDeclaration>, Microsoft.CodeAnalysis.CSharp.MethodArgumentInfo, Microsoft.CodeAnalysis.CSharp.Bound 
AwaitableInfo, Microsoft.CodeAnalysis.SyntaxToken) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew
riter.MakeLocalUsingDeclarationStatement(Microsoft.CodeAnalysis.CSharp.BoundUsingLocalDeclarations, System.Collections.Immutable.Imm 
utableArray`1<Microsoft.CodeAnalysis.CSharp.BoundStatement>) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitStatementSubList(Microsoft.CodeAnalysis.PooledObjects.ArrayBuilder`1<Microsoft.CodeAnalysis.CSharp.BoundStatement>, Syste 
m.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.CSharp.BoundStatement>, Int32) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitBlock(Microsoft.CodeAnalysis.CSharp.BoundBlock) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitStatement(Microsoft.CodeAnalysis.CSharp.BoundStatement) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.Rewrite(Microsoft.CodeAnalysis.CSharp.CSharpCompilation, Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol, Int32, Microsoft. 
CodeAnalysis.CSharp.Symbols.NamedTypeSymbol, Microsoft.CodeAnalysis.CSharp.BoundStatement, Microsoft.CodeAnalysis.CSharp.TypeCompila 
tionState, Microsoft.CodeAnalysis.CSharp.SynthesizedSubmissionFields, Boolean, Microsoft.CodeAnalysis.Emit.MethodInstrumentation, Mi 
crosoft.CodeAnalysis.CodeGen.DebugDocumentProvider, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag, System.Collections.Immutable 
.ImmutableArray`1<Microsoft.CodeAnalysis.CodeGen.SourceSpan> ByRef, Boolean ByRef, Boolean ByRef, Boolean ByRef) [D:\dev\Tests\Tests 
.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.LowerBodyOrInitializer(Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol, Int32, Microsoft.CodeAnalysis.CSharp.BoundStatemen 
t, Microsoft.CodeAnalysis.CSharp.SynthesizedSubmissionFields, Microsoft.CodeAnalysis.CSharp.TypeCompilationState, Microsoft.CodeAnal 
ysis.Emit.MethodInstrumentation, Microsoft.CodeAnalysis.CodeGen.DebugDocumentProvider, System.Collections.Immutable.ImmutableArray`1 
<Microsoft.CodeAnalysis.CodeGen.SourceSpan> ByRef, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag, Microsoft.CodeAnalysis.CodeGe 
n.VariableSlotAllocator ByRef, Microsoft.CodeAnalysis.PooledObjects.ArrayBuilder`1<Microsoft.CodeAnalysis.Emit.EncLambdaInfo>, Micro 
soft.CodeAnalysis.PooledObjects.ArrayBuilder`1<Microsoft.CodeAnalysis.CodeGen.LambdaRuntimeRudeEditInfo>, Microsoft.CodeAnalysis.Poo 
ledObjects.ArrayBuilder`1<Microsoft.CodeAnalysis.Emit.EncClosureInfo>, Microsoft.CodeAnalysis.PooledObjects.ArrayBuilder`1<Microsoft 
.CodeAnalysis.CodeGen.StateMachineStateDebugInfo>, Microsoft.CodeAnalysis.CSharp.StateMachineTypeSymbol ByRef) [D:\dev\Tests\Tests.c 
sproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.CompileMethod(Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol, Int32, ProcessedFieldInitializers ByRef, Microsoft.CodeAnal 
ysis.CSharp.SynthesizedSubmissionFields, Microsoft.CodeAnalysis.CSharp.TypeCompilationState) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.CompileNamedType(Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo
mpiler+<>c__DisplayClass25_0.<CompileNamedTypeAsync>b__0() [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at System.Threading.ExecutionContext.RunF 
romThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Objec 
t) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at System.Threading.Tasks.Task.ExecuteWit 
hThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at System.Threading.ThreadPoolWorkQueue.D 
ispatch() [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at System.Threading.PortableThreadPool+Wo 
rkerThread.WorkerThreadStart() [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error : System.NullReferenceException: Object refere
nce not set to an instance of an object. [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundNod 
eExtensions.HasErrors[T](ImmutableArray`1 nodeArray) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundBlo
ck..ctor(SyntaxNode syntax, ImmutableArray`1 locals, ImmutableArray`1 statements, Boolean hasErrors) [D:\dev\Tests\Tests.csproj]     
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundBlo 
ck.SynthesizedNoLocals(SyntaxNode syntax, BoundStatement[] statements) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.RewriteDeclarationUsingStatement(SyntaxNode usingSyntax, BoundLocalDeclaration localDeclaration, BoundBlock tryBlock, SyntaxTo 
ken awaitKeywordOpt, BoundAwaitableInfo awaitOpt, MethodArgumentInfo patternDisposeInfo) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.MakeDeclarationUsingStatement(SyntaxNode syntax, BoundBlock body, ImmutableArray`1 locals, ImmutableArray`1 declarations, Meth 
odArgumentInfo patternDisposeInfo, BoundAwaitableInfo awaitOpt, SyntaxToken awaitKeyword) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.MakeLocalUsingDeclarationStatement(BoundUsingLocalDeclarations usingDeclarations, ImmutableArray`1 statements) [D:\dev\Tests\T 
ests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitStatementSubList(ArrayBuilder`1 builder, ImmutableArray`1 statements, Int32 startIndex) [D:\dev\Tests\Tests.csproj]       
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitBlock(BoundBlock node) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew
riter.VisitStatement(BoundStatement node) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.Rewrite(CSharpCompilation compilation, MethodSymbol method, Int32 methodOrdinal, NamedTypeSymbol containingType, BoundStatemen 
t statement, TypeCompilationState compilationState, SynthesizedSubmissionFields previousSubmissionFields, Boolean allowOmissionOfCon 
ditionalCalls, MethodInstrumentation instrumentation, DebugDocumentProvider debugDocumentProvider, BindingDiagnosticBag diagnostics, 
 ImmutableArray`1& codeCoverageSpans, Boolean& sawLambdas, Boolean& sawLocalFunctions, Boolean& sawAwaitInExceptionHandler) [D:\dev\ 
Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.LowerBodyOrInitializer(MethodSymbol method, Int32 methodOrdinal, BoundStatement body, SynthesizedSubmissionFields previousSub 
missionFields, TypeCompilationState compilationState, MethodInstrumentation instrumentation, DebugDocumentProvider debugDocumentProv 
ider, ImmutableArray`1& codeCoverageSpans, BindingDiagnosticBag diagnostics, VariableSlotAllocator& lazyVariableSlotAllocator, Array 
Builder`1 lambdaDebugInfoBuilder, ArrayBuilder`1 lambdaRuntimeRudeEditsBuilder, ArrayBuilder`1 closureDebugInfoBuilder, ArrayBuilder 
`1 stateMachineStateDebugInfoBuilder, StateMachineTypeSymbol& stateMachineTypeOpt) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.CompileMethod(MethodSymbol methodSymbol, Int32 methodOrdinal, ProcessedFieldInitializers& processedInitializers, SynthesizedS 
ubmissionFields previousSubmissionFields, TypeCompilationState compilationState) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo
mpiler.CompileNamedType(NamedTypeSymbol containingType) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo
mpiler.<>c__DisplayClass25_0.<CompileNamedTypeAsync>b__0() [D:\dev\Tests\Tests.csproj]

Build FAILED.

C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error : Process terminated. System.NullReferenceExce 
ption: Object reference not set to an instance of an object. [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundNod 
eExtensions.HasErrors[T](ImmutableArray`1 nodeArray) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundBlo 
ck..ctor(SyntaxNode syntax, ImmutableArray`1 locals, ImmutableArray`1 statements, Boolean hasErrors) [D:\dev\Tests\Tests.csproj]     
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundBlo 
ck.SynthesizedNoLocals(SyntaxNode syntax, BoundStatement[] statements) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.RewriteDeclarationUsingStatement(SyntaxNode usingSyntax, BoundLocalDeclaration localDeclaration, BoundBlock tryBlock, SyntaxTo 
ken awaitKeywordOpt, BoundAwaitableInfo awaitOpt, MethodArgumentInfo patternDisposeInfo) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.MakeDeclarationUsingStatement(SyntaxNode syntax, BoundBlock body, ImmutableArray`1 locals, ImmutableArray`1 declarations, Meth 
odArgumentInfo patternDisposeInfo, BoundAwaitableInfo awaitOpt, SyntaxToken awaitKeyword) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.MakeLocalUsingDeclarationStatement(BoundUsingLocalDeclarations usingDeclarations, ImmutableArray`1 statements) [D:\dev\Tests\T 
ests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitStatementSubList(ArrayBuilder`1 builder, ImmutableArray`1 statements, Int32 startIndex) [D:\dev\Tests\Tests.csproj]       
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitBlock(BoundBlock node) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitStatement(BoundStatement node) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.Rewrite(CSharpCompilation compilation, MethodSymbol method, Int32 methodOrdinal, NamedTypeSymbol containingType, BoundStatemen 
t statement, TypeCompilationState compilationState, SynthesizedSubmissionFields previousSubmissionFields, Boolean allowOmissionOfCon 
ditionalCalls, MethodInstrumentation instrumentation, DebugDocumentProvider debugDocumentProvider, BindingDiagnosticBag diagnostics, 
 ImmutableArray`1& codeCoverageSpans, Boolean& sawLambdas, Boolean& sawLocalFunctions, Boolean& sawAwaitInExceptionHandler) [D:\dev\ 
Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.LowerBodyOrInitializer(MethodSymbol method, Int32 methodOrdinal, BoundStatement body, SynthesizedSubmissionFields previousSub 
missionFields, TypeCompilationState compilationState, MethodInstrumentation instrumentation, DebugDocumentProvider debugDocumentProv 
ider, ImmutableArray`1& codeCoverageSpans, BindingDiagnosticBag diagnostics, VariableSlotAllocator& lazyVariableSlotAllocator, Array 
Builder`1 lambdaDebugInfoBuilder, ArrayBuilder`1 lambdaRuntimeRudeEditsBuilder, ArrayBuilder`1 closureDebugInfoBuilder, ArrayBuilder 
`1 stateMachineStateDebugInfoBuilder, StateMachineTypeSymbol& stateMachineTypeOpt) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.CompileMethod(MethodSymbol methodSymbol, Int32 methodOrdinal, ProcessedFieldInitializers& processedInitializers, SynthesizedS
ubmissionFields previousSubmissionFields, TypeCompilationState compilationState) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.CompileNamedType(NamedTypeSymbol containingType) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.<>c__DisplayClass25_0.<CompileNamedTypeAsync>b__0() [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at System.Environment.FailFast(System.Str 
ing, System.Exception) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.FailFast.OnFata 
lException(System.Exception) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.ErrorReporting. 
FatalError.Report(System.Exception, Microsoft.CodeAnalysis.ErrorReporting.ErrorSeverity, Boolean) [D:\dev\Tests\Tests.csproj]        
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.ErrorReporting. 
FatalError.ReportAndPropagateUnlessCanceled(System.Exception, Microsoft.CodeAnalysis.ErrorReporting.ErrorSeverity) [D:\dev\Tests\Tes 
ts.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler+<>c__DisplayClass25_0.<CompileNamedTypeAsync>b__0() [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundNod 
eExtensions.HasErrors[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](S 
ystem.Collections.Immutable.ImmutableArray`1<System.__Canon>) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundBlo 
ck..ctor(Microsoft.CodeAnalysis.SyntaxNode, System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.CSharp.Symbols.Loca 
lSymbol>, System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.CSharp.BoundStatement>, Boolean) [D:\dev\Tests\Tests. 
csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundBlo 
ck.SynthesizedNoLocals(Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.CSharp.BoundStatement[]) [D:\dev\Tests\Tests.csproj 
]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.RewriteDeclarationUsingStatement(Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.CSharp.BoundLocalDeclaration, Micro 
soft.CodeAnalysis.CSharp.BoundBlock, Microsoft.CodeAnalysis.SyntaxToken, Microsoft.CodeAnalysis.CSharp.BoundAwaitableInfo, Microsoft 
.CodeAnalysis.CSharp.MethodArgumentInfo) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.MakeDeclarationUsingStatement(Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.CSharp.BoundBlock, System.Collections. 
Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.CSharp.Symbols.LocalSymbol>, System.Collections.Immutable.ImmutableArray`1<Microso 
ft.CodeAnalysis.CSharp.BoundLocalDeclaration>, Microsoft.CodeAnalysis.CSharp.MethodArgumentInfo, Microsoft.CodeAnalysis.CSharp.Bound 
AwaitableInfo, Microsoft.CodeAnalysis.SyntaxToken) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.MakeLocalUsingDeclarationStatement(Microsoft.CodeAnalysis.CSharp.BoundUsingLocalDeclarations, System.Collections.Immutable.Imm 
utableArray`1<Microsoft.CodeAnalysis.CSharp.BoundStatement>) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitStatementSubList(Microsoft.CodeAnalysis.PooledObjects.ArrayBuilder`1<Microsoft.CodeAnalysis.CSharp.BoundStatement>, Syste 
m.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.CSharp.BoundStatement>, Int32) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitBlock(Microsoft.CodeAnalysis.CSharp.BoundBlock) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitStatement(Microsoft.CodeAnalysis.CSharp.BoundStatement) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.Rewrite(Microsoft.CodeAnalysis.CSharp.CSharpCompilation, Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol, Int32, Microsoft.
CodeAnalysis.CSharp.Symbols.NamedTypeSymbol, Microsoft.CodeAnalysis.CSharp.BoundStatement, Microsoft.CodeAnalysis.CSharp.TypeCompila 
tionState, Microsoft.CodeAnalysis.CSharp.SynthesizedSubmissionFields, Boolean, Microsoft.CodeAnalysis.Emit.MethodInstrumentation, Mi 
crosoft.CodeAnalysis.CodeGen.DebugDocumentProvider, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag, System.Collections.Immutable 
.ImmutableArray`1<Microsoft.CodeAnalysis.CodeGen.SourceSpan> ByRef, Boolean ByRef, Boolean ByRef, Boolean ByRef) [D:\dev\Tests\Tests 
.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.LowerBodyOrInitializer(Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol, Int32, Microsoft.CodeAnalysis.CSharp.BoundStatemen 
t, Microsoft.CodeAnalysis.CSharp.SynthesizedSubmissionFields, Microsoft.CodeAnalysis.CSharp.TypeCompilationState, Microsoft.CodeAnal 
ysis.Emit.MethodInstrumentation, Microsoft.CodeAnalysis.CodeGen.DebugDocumentProvider, System.Collections.Immutable.ImmutableArray`1 
<Microsoft.CodeAnalysis.CodeGen.SourceSpan> ByRef, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag, Microsoft.CodeAnalysis.CodeGe 
n.VariableSlotAllocator ByRef, Microsoft.CodeAnalysis.PooledObjects.ArrayBuilder`1<Microsoft.CodeAnalysis.Emit.EncLambdaInfo>, Micro 
soft.CodeAnalysis.PooledObjects.ArrayBuilder`1<Microsoft.CodeAnalysis.CodeGen.LambdaRuntimeRudeEditInfo>, Microsoft.CodeAnalysis.Poo 
ledObjects.ArrayBuilder`1<Microsoft.CodeAnalysis.Emit.EncClosureInfo>, Microsoft.CodeAnalysis.PooledObjects.ArrayBuilder`1<Microsoft 
.CodeAnalysis.CodeGen.StateMachineStateDebugInfo>, Microsoft.CodeAnalysis.CSharp.StateMachineTypeSymbol ByRef) [D:\dev\Tests\Tests.c 
sproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.CompileMethod(Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol, Int32, ProcessedFieldInitializers ByRef, Microsoft.CodeAnal 
ysis.CSharp.SynthesizedSubmissionFields, Microsoft.CodeAnalysis.CSharp.TypeCompilationState) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.CompileNamedType(Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler+<>c__DisplayClass25_0.<CompileNamedTypeAsync>b__0() [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at System.Threading.ExecutionContext.RunF 
romThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Objec 
t) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at System.Threading.Tasks.Task.ExecuteWit 
hThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at System.Threading.ThreadPoolWorkQueue.D
ispatch() [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at System.Threading.PortableThreadPool+Wo 
rkerThread.WorkerThreadStart() [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error : System.NullReferenceException: Object refere 
nce not set to an instance of an object. [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundNod 
eExtensions.HasErrors[T](ImmutableArray`1 nodeArray) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundBlo 
ck..ctor(SyntaxNode syntax, ImmutableArray`1 locals, ImmutableArray`1 statements, Boolean hasErrors) [D:\dev\Tests\Tests.csproj]     
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.BoundBlo 
ck.SynthesizedNoLocals(SyntaxNode syntax, BoundStatement[] statements) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.RewriteDeclarationUsingStatement(SyntaxNode usingSyntax, BoundLocalDeclaration localDeclaration, BoundBlock tryBlock, SyntaxTo 
ken awaitKeywordOpt, BoundAwaitableInfo awaitOpt, MethodArgumentInfo patternDisposeInfo) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.MakeDeclarationUsingStatement(SyntaxNode syntax, BoundBlock body, ImmutableArray`1 locals, ImmutableArray`1 declarations, Meth 
odArgumentInfo patternDisposeInfo, BoundAwaitableInfo awaitOpt, SyntaxToken awaitKeyword) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.MakeLocalUsingDeclarationStatement(BoundUsingLocalDeclarations usingDeclarations, ImmutableArray`1 statements) [D:\dev\Tests\T 
ests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitStatementSubList(ArrayBuilder`1 builder, ImmutableArray`1 statements, Int32 startIndex) [D:\dev\Tests\Tests.csproj]       
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitBlock(BoundBlock node) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.VisitStatement(BoundStatement node) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.LocalRew 
riter.Rewrite(CSharpCompilation compilation, MethodSymbol method, Int32 methodOrdinal, NamedTypeSymbol containingType, BoundStatemen
t statement, TypeCompilationState compilationState, SynthesizedSubmissionFields previousSubmissionFields, Boolean allowOmissionOfCon 
ditionalCalls, MethodInstrumentation instrumentation, DebugDocumentProvider debugDocumentProvider, BindingDiagnosticBag diagnostics, 
 ImmutableArray`1& codeCoverageSpans, Boolean& sawLambdas, Boolean& sawLocalFunctions, Boolean& sawAwaitInExceptionHandler) [D:\dev\ 
Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.LowerBodyOrInitializer(MethodSymbol method, Int32 methodOrdinal, BoundStatement body, SynthesizedSubmissionFields previousSub 
missionFields, TypeCompilationState compilationState, MethodInstrumentation instrumentation, DebugDocumentProvider debugDocumentProv 
ider, ImmutableArray`1& codeCoverageSpans, BindingDiagnosticBag diagnostics, VariableSlotAllocator& lazyVariableSlotAllocator, Array 
Builder`1 lambdaDebugInfoBuilder, ArrayBuilder`1 lambdaRuntimeRudeEditsBuilder, ArrayBuilder`1 closureDebugInfoBuilder, ArrayBuilder 
`1 stateMachineStateDebugInfoBuilder, StateMachineTypeSymbol& stateMachineTypeOpt) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.CompileMethod(MethodSymbol methodSymbol, Int32 methodOrdinal, ProcessedFieldInitializers& processedInitializers, SynthesizedS 
ubmissionFields previousSubmissionFields, TypeCompilationState compilationState) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.CompileNamedType(NamedTypeSymbol containingType) [D:\dev\Tests\Tests.csproj]
C:\Program Files\dotnet\sdk\8.0.201\Roslyn\Microsoft.CSharp.Core.targets(84,5): error :    at Microsoft.CodeAnalysis.CSharp.MethodCo 
mpiler.<>c__DisplayClass25_0.<CompileNamedTypeAsync>b__0() [D:\dev\Tests\Tests.csproj]
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 12, 2024
@jaredpar jaredpar added Bug and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 12, 2024
@jaredpar jaredpar added this to the 17.10 milestone Mar 12, 2024
@jcouv jcouv added the 4 - In Review A fix for the issue is submitted for review. label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - In Review A fix for the issue is submitted for review. Area-Compilers Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants