Skip to content

Conversation

@tannergooding
Copy link
Member

No description provided.

@tannergooding tannergooding merged commit b43ff4c into dotnet:master Mar 21, 2021
Copy link
Member

@Perksey Perksey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine

var needsReturnFixup = isVirtual && NeedsReturnFixup(cxxMethodDecl);

if (!(functionDecl is CXXConstructorDecl))
if ((functionDecl is not CXXConstructorDecl) || (_config.OutputMode == PInvokeGeneratorOutputMode.Xml))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we should add a boolean to WriteReturnType indicating whether it's for a ctor or not to avoid this being baked into VisitDecl, that does nothing if that boolean is true on the C# backend.

return ValidateGeneratedXmlCompatibleUnixBindingsAsync(inputContents, expectedOutputContents);
}

public override Task NewKeywordTest()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this test is a bit redundant given we expect the downstream consumer to determine whether a new keyword is needed.

@tannergooding tannergooding deleted the tests branch March 22, 2021 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants