Skip to content

Commit

Permalink
Generic warning location tests (dotnet#3146)
Browse files Browse the repository at this point in the history
Adds a test which focused on warnings produced due to annotated generic parameters. This is relatively tricky for the product to deal with since it's often part of the type system and not code. So this test focused on all the different situations such warning can occur and the location where the warning is generated.

Co-authored-by: Tlakaelel Axayakatl Ceja <[email protected]>
  • Loading branch information
vitek-karas and tlakollo authored Dec 2, 2022
1 parent e816e73 commit da244b7
Show file tree
Hide file tree
Showing 3 changed files with 899 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ namespace ILLink.RoslynAnalyzer.Tests
public sealed partial class DataFlowTests : LinkerTestBase
{

[Fact]
public Task GenericParameterWarningLocation ()
{
return RunTest (allowMissingWarnings: true);
}

[Fact]
public Task MethodByRefParameterDataFlow ()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using Mono.Linker.Tests.Cases.Expectations.Assertions;
Expand Down
Loading

0 comments on commit da244b7

Please sign in to comment.