Metalama icon indicating copy to clipboard operation
Metalama copied to clipboard

Metalama.Tests.NopCommerce generates invalid syntax trees during benchmarking

Open addabis opened this issue 2 months ago • 1 comments

The actual should be determined and this ticket should be renamed.

C:\Dev\Metalama.Tests.NopCommerce\src\Libraries\Nop.Core\Infrastructure\ConcurrentTrie.cs(699,52): error CS0206: A non ref-returning property or indexer may not be used as an out or ref value
C:\Dev\Metalama.Tests.NopCommerce\src\Libraries\Nop.Core\Infrastructure\ConcurrentTrie.cs(717,59): error CS0206: A non ref-returning property or indexer may not be used as an out or ref value

Steps to reproduce in Metalama.Tests.NopCommerce repo, topic/2026.0/performance-testing branch.


dotnet restore src
dotnet msbuild src\Libraries\Nop.Core /p:ExtraConstants=BENCHMARK /p:MetalamaEnabled=true /p:BenchmarkedTypesFractionInverse=1 /p:BenchmarkedMembersFractionInverse=1 /p:MetalamaEmitCompilerTransformedFiles=True /p:MetalamaFormatOutput=True

addabis avatar Nov 10 '25 09:11 addabis