Skip to content

Commit cbd8535

Browse files
committed
Revert langversion upgrade.
1 parent cec7f9b commit cbd8535

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

build/common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</PropertyGroup>
3434

3535
<PropertyGroup Condition=" '$(IsVisualBasic)' != 'true' AND '$(IsFsharp)' != 'true' ">
36-
<LangVersion>11</LangVersion>
36+
<LangVersion>9.0</LangVersion>
3737

3838
<Major>0</Major>
3939
<Minor>13</Minor>

src/BenchmarkDotNet/Code/DeclarationsProvider.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ public override string OverheadImplementation
9494
{
9595
return $"return default({type.GetCorrectCSharpTypeName()});";
9696
}
97-
return $"""
98-
System.Runtime.CompilerServices.Unsafe.SkipInit(out {type.GetCorrectCSharpTypeName()} value);
99-
return value;
100-
""";
97+
return $"System.Runtime.CompilerServices.Unsafe.SkipInit(out {type.GetCorrectCSharpTypeName()} value);\nreturn value;";
10198
}
10299
}
103100

0 commit comments

Comments
 (0)