Skip to content

Commit 077a56d

Browse files
committed
Disable via #if
To avoid breaking CanFindATypeForAllCsFiles test
1 parent 03fa92b commit 077a56d

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

src/tools/illink/test/ILLink.RoslynAnalyzer.Tests/DataFlowTests.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,11 @@ public Task EventDataFlow ()
149149
return RunTest ();
150150
}
151151

152-
// Disabled until we can use C# 14 in tests.
153-
// [Fact]
154-
// public Task ExtensionMembersDataFlow ()
155-
// {
156-
// return RunTest ();
157-
// }
152+
[Fact]
153+
public Task ExtensionMembersDataFlow ()
154+
{
155+
return RunTest ();
156+
}
158157

159158
[Fact]
160159
public Task ExtensionsDataFlow ()

src/tools/illink/test/Mono.Linker.Tests.Cases/DataFlow/ExtensionMembersDataFlow.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ public class ExtensionMembersDataFlow
1818
{
1919
public static void Main ()
2020
{
21+
// This test is disabled until we can use C# 14 in tests.
22+
#if SUPPORTS_EXTENSION_MEMBERS
2123
TestExtensionMethod ();
2224
TestExtensionMethodMismatch ();
2325
TestExtensionMethodRequires ();
@@ -277,6 +279,7 @@ public Type ExtensionMembersPropertyConflict {
277279
// right.RequiresPublicMethods ();
278280
// return ExtensionMembersDataFlow.GetWithMethods ();
279281
// }
282+
#endif
280283
}
281284
}
282285
}

src/tools/illink/test/Mono.Linker.Tests.Cases/Mono.Linker.Tests.Cases.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,4 @@
6666
<Compile Remove="TopLevelStatements/**/*" />
6767
</ItemGroup>
6868

69-
<ItemGroup>
70-
<!-- This test is disabled until we can use C# 14 in tests. -->
71-
<Compile Remove="DataFlow\ExtensionMembersDataFlow.cs" />
72-
</ItemGroup>
73-
7469
</Project>

0 commit comments

Comments
 (0)