Skip to content

Commit

Permalink
Fix test failure due to conflicting merged PRs in DllImportGenerator …
Browse files Browse the repository at this point in the history
…tests. (#66156)

Fixes #66143
  • Loading branch information
jkoritzinsky authored Mar 3, 2022
1 parent 7db092a commit 79c35a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public async Task ChangingMarshallingStrategy_RegeneratesStub()
[ConditionalFact]
public async Task ChangingMarshallingAttributes_SameStrategy_DoesNotRegenerate()
{
string source = CodeSnippets.BasicParametersAndModifiers<bool>();
string source = CodeSnippets.BasicParametersAndModifiers<int>();

SyntaxTree syntaxTree = CSharpSyntaxTree.ParseText(source, new CSharpParseOptions(LanguageVersion.Preview));

Expand All @@ -187,7 +187,7 @@ public async Task ChangingMarshallingAttributes_SameStrategy_DoesNotRegenerate()

SyntaxTree newTree = syntaxTree.WithRootAndOptions(
SyntaxFactory.ParseCompilationUnit(
CodeSnippets.MarshalAsParametersAndModifiers<bool>(System.Runtime.InteropServices.UnmanagedType.Bool)),
CodeSnippets.MarshalAsParametersAndModifiers<int>(System.Runtime.InteropServices.UnmanagedType.I4)),
syntaxTree.Options);

Compilation comp2 = comp1.ReplaceSyntaxTree(comp1.SyntaxTrees.First(), newTree);
Expand Down

0 comments on commit 79c35a6

Please sign in to comment.