Extensions like SynType.Option generate incorrect syntax
AlexeyRaga opened this issue · comments
Alexey Raga commented
Using SynType
extensions from Myriad.Core.AstExtensions
:
SynType.Option(SynType.Int())
generatesOptionint
instead ofOption<int>
SynType.ResizeArray(SynType.Int())
generatesResizeArrayint
instead ofResizeArray<int>
At the same time, postfix notation works fine:
SynType.CreateApp(SynType.Create("option"), [SynType.Int()], true)
generates int option
correctly.
Dave Thomas commented
These issues are probably because generics have never been utilised much yet, thanks for reporting.