Skip to content

Commit

Permalink
Use the latest version of ILasm and enable a test not supported by th…
Browse files Browse the repository at this point in the history
…e old version (#75108)

Closes #73553.
  • Loading branch information
AlekseyTs committed Sep 13, 2024
1 parent 199c241 commit f2ac8ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eng/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!-- CodeStyleAnalyzerVersion should we updated together with version of dotnet-format in dotnet-tools.json -->
<CodeStyleAnalyzerVersion>4.8.0-3.final</CodeStyleAnalyzerVersion>
<VisualStudioEditorPackagesVersion>17.10.191</VisualStudioEditorPackagesVersion>
<ILAsmPackageVersion>6.0.0-rtm.21518.12</ILAsmPackageVersion>
<ILAsmPackageVersion>9.0.0-rc.2.24462.10</ILAsmPackageVersion>
<ILDAsmPackageVersion>6.0.0-rtm.21518.12</ILDAsmPackageVersion>
<MicrosoftILVerificationVersion>7.0.0-alpha.1.22060.1</MicrosoftILVerificationVersion>
<MicrosoftTestPlatformVersion>17.5.0</MicrosoftTestPlatformVersion>
Expand Down
6 changes: 3 additions & 3 deletions src/Compilers/CSharp/Test/Emit3/RefStructInterfacesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22378,7 +22378,7 @@ ref struct S
);
}

[Fact(Skip = "https://github.com/dotnet/roslyn/issues/73553")] // Enable once we get support for 'byreflike' in IL.
[ConditionalFact(typeof(CoreClrOnly))]
[WorkItem("https://github.com/dotnet/roslyn/issues/73553")]
public void RefFieldTypeAllowsRefLike()
{
Expand All @@ -22401,15 +22401,15 @@ .field public !T& F
{
static void F<T >(ref T r1) where T : allows ref struct
{
var r2 = new R2();
var r2 = new R2<T>();
r2.F = ref r1;
}
}";
var comp = CreateCompilation(sourceB, references: new[] { refA }, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics);
comp.VerifyEmitDiagnostics(
// (6,12): error CS0570: 'R2.F' is not supported by the language
// r2.F = ref r1;
Diagnostic(ErrorCode.ERR_BindToBogus, "F").WithArguments("R2.F").WithLocation(6, 12)
Diagnostic(ErrorCode.ERR_BindToBogus, "F").WithArguments("R2<T>.F").WithLocation(6, 12)
);
}

Expand Down

0 comments on commit f2ac8ee

Please sign in to comment.