Skip to content

Decompiler Bug, UnionCaseTest: zero arg unions sprinted with "()" #14

@GoogleCodeExporter

Description

@GoogleCodeExporter
UnionCaseTest expressions should not sprint "()" for zero arg unions:

> source <@ match None with | None -> true | _ -> false @>;;
val it : string =
  "let matchValue = None in (match matchValue with | None() -> true | _ -> false) && true"

should instead produce the following code:

let matchValue = None in (match matchValue with | None -> true | _ -> false) && 
true

Original issue reported on code.google.com by stephen....@gmail.com on 1 Mar 2011 at 1:21

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