SwensenSoftware / unquote

Write F# unit test assertions as quoted expressions, get step-by-step failure messages for free
http://www.swensensoftware.com/unquote
Apache License 2.0
285 stars 26 forks source link

None and null literals should be decompiled with explicit type annotations #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For example,

decompile <@ (null:string).Length @>

should be

"(null:string).Length"

but is

"null.Length"

Similar results for None literals.

We hesitate moving this issue from New to Accepted status because in a majority 
of cases, the type of these literals is obviously, i.e. in a reduction, e.g.

unquote <@ someProperty.Length @>

someProperty.Length
null.Length
...

Original issue reported on code.google.com by stephen....@gmail.com on 10 Jun 2012 at 11:21

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 10 Jun 2012 at 11:47

GoogleCodeExporter commented 9 years ago
Marking as WontFix, since as stated in the majority of cases the type of null 
or None is clear.

Original comment by stephen....@gmail.com on 2 Feb 2013 at 5:24