VB -> C#: Mapping trivia from source can override any #error trivia added by Converter #917
Labels
output logic error
A bug where the converted output behaves differently to the input code
VB -> C#
Specific to VB -> C# conversion
VB.Net input code
Erroneous output
Expected output
If you move
}
to the same line:Dim y As New TestClass() With { .A = 1, .B = .A }
then the conversion looks "ok".
It think TriviaMapper will override any trivia added by the converter when there is something other we want to map from the source vb code.
What's worse, you will not get any info about errors in the output window (why dummyNode doesn't have error annotations?)
Details
The text was updated successfully, but these errors were encountered: