Open lbmaian opened 3 years ago
so you are asking for an option to always use T
instead of var
?
Well, I'd prefer an option to use var
instead of actual type wherever var
can be used - not something specific to out var
.
But in the absence of that, for consistency, I think var
(including out var
) should only be used for anonymous types like before.
This a regression of sorts from the fix for #2140 where out variable declarations at callsites always decompile to
out var
rather thanout <type>
. This behavior differs from ILSpy 6.1.AFAIK, there is no decompiler option for toggling "var" vs the actual type.
Input code
Decompiler settings reset to default.
Source as entered in LINQPad 5:
Assembly: query_rfjjvu.zip
Erroneous output
Actual decompiled Main:
Expected decompiled Main (as decompiled by ILSpy 6.1):
Details