MoiraeSoftware / myriad

Myriad is a code generator for F#

Home Page:https://moiraesoftware.github.io/myriad/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Removing redundant parens Lenses attribute generates incorrect code

auduchinok opened this issue · comments

When removing the extra parens in the attribute:

[<Generator.Lenses ("lens")>]
type RecordWithEmptyWrapperName =
{ one_empty_wrapper_name: int }

The following code is produced:

namespace rec globalmodule LensesGeneratorFailure =
    let (!CompilationError) =
        "Unsupported syntax of specifying the wrapper name for type [RecordWithEmptyWrapperName].
Expr: Const
  (String
     (\"lens\",
      C:\Developer\solutions\myriad\test\Myriad.IntegrationPluginTests\Input.fs (14,19--14,25) IsSynthetic=false),
   C:\Developer\solutions\myriad\test\Myriad.IntegrationPluginTests\Input.fs (14,19--14,25) IsSynthetic=false)"