Skip to content

[JS] Invalid quotation of union string cases #3820

@MangelMaxime

Description

@MangelMaxime

Description

type S = S of string


let s = sprintf "%A" (S "1")

printfn "%A" (s = "S \"1\"")
printfn "%A" ("S \"1\"")
printfn "%A" (s)

gives

false
S "1"
S 1

instead of

true
S "1"
S "1"

Related information

  • Fable version: 4.17.0
  • Operating system:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions