Avoid creating result temp for switch-expressions #69194
.NET Result Analysis
Details
Test Failures (2 tests failed)
🔹 [All failing tests from roslyn-CI]
- Exception Message
System.Exception : Depth: 1590, Bytes: 4, Config: Release, Desktop: True ---- System.AggregateException : One or more errors occurred. -------- Expected: Actual: // (10,9): error CS8078: An expression is too long or complex to compile // GetC() Diagnostic(ErrorCode.ERR_InsufficientStack, "GetC").WithLocation(10, 9) Diff: ++> Diagnostic(ErrorCode.ERR_InsufficientStack, "GetC").WithLocation(10, 9) Expected: True Actual: False -------- Expected: Actual: // (10,9): error CS8078: An expression is too long or complex to compile // GetC() Diagnostic(ErrorCode.ERR_InsufficientStack, "GetC").WithLocation(10, 9) Diff: ++> Diagnostic(ErrorCode.ERR_InsufficientStack, "GetC").WithLocation(10, 9) Expected: True Actual: False
- CallStack
at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.<OverflowOnFluentCall_ExtensionMethods>g__testLimits|3_0(Exception innerException) in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 217 at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.OverflowOnFluentCall_ExtensionMethods() in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 199 ----- Inner Stack Trace -----
----- Inner Stack Trace #1 (Xunit.Sdk.TrueException) -----
at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.RunInThread(Action action, Nullable`1 timeout) in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 63
at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.<OverflowOnFluentCall_ExtensionMethods>g__tryCompileDeepFluentCalls|3_1(Int32 depth) in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 244
at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.<OverflowOnFluentCall_ExtensionMethods>g__testLimits|3_0(Exception innerException) in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 208
----- Inner Stack Trace #2 (Xunit.Sdk.TrueException) -----
at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.RunInThread(Action action, Nullable`1 timeout) in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 63
at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.<OverflowOnFluentCall_ExtensionMethods>g__tryCompileDeepFluentCalls|3_1(Int32 depth) in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 244
at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.OverflowOnFluentCall_ExtensionMethods() in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 195
❌ Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests_0.WorkItemExecution [Console] [Details] [Artifacts] [0.15% failure rate]
-
[ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]
This is a helix work item crash with status: BadExit. To investigate look the [Console log] / navigate to [Helix Artifacts]
Failing Configuration
❌ Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.OverflowOnFluentCall_ExtensionMethods [Console] [Details] [Artifacts] [0.14% failure rate]
-
[ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]