Skip to content

Conversation

@reflectronic
Copy link
Contributor

Constant string literal declarations like

const wchar_t MyConst[] = "Test";

are incorrectly translated to C# as

public const string[] MyConst = "Test";

This patch removes the erroneous array type specifier.

@tannergooding tannergooding merged commit 077eaba into dotnet:master Jan 8, 2021
@reflectronic reflectronic deleted the fix-const-string-literal branch January 8, 2021 20:48
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