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
287 stars 25 forks source link

Type.FSharpName bug: generic typedef args should be printed with leading tick #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
e.g. instead of

> typedefof<int * int>.FSharpName;;
val it : string = "T1 * T2"

should be

val it : string = "'T1 * 'T2"

Original issue reported on code.google.com by stephen....@gmail.com on 18 Apr 2011 at 4:23

GoogleCodeExporter commented 9 years ago
note that arrays are not generic in the runtime so we can't recover 
typedefof<_[]> as 'T[] like we'd like to (instead it is obj[])

Original comment by stephen....@gmail.com on 20 Jul 2011 at 1:19

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 20 Jul 2011 at 2:15