Open Aussiemon opened 5 months ago
This is not a bug, but a request for improvement. While we do some prettifying of double and float constants, that can be expressed as fractions or multiples of Math.PI or E, I don't think this case is worth the effort.
Questions:
These two questions are examples of why such a feature is problematic in my opinion.
Similar to #1084.
The reference to const
kPlantableNameKey
is replaced by its value in the constructor, which is valid code, but an unused assignment / variable warning at the IDE. Perhaps the decompiler could check for private constants and replace matching literals in scope, or perhaps this is a more specific edge case.Input code
Erroneous output (from .NET 8.0 SDK class library)
Details