Skip to content

Query for single constructor datatypes fails in C++ #1609

Open
@fabiomadge

Description

@fabiomadge
datatype D = D

method Main(){
  var x: D := D;
  if(x.D?){
    print "D";
  }
}

The generated code won't compile, as the necessary wrapper constructs aren't created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugCrashes, unsoundness, incorrect output, etc. If possible, add a `part:` labellang: c++Dafny's C++ transpiler and its runtimepart: code-generationSupport for transpiling Dafny to another language. If relevant, add a `lang:` tagpriority: not yetWill reconsider working on this when we're looking for work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions