Automatic Test Gen: Type Parameter Translation #2221
Labels
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
part: code-generation
Support for transpiling Dafny to another language. If relevant, add a `lang:` tag
Dafny version: 3.6.0.40511
When running /generateTestMode:Block on this Dafny method
the tests generated take on this form
The first two parameters are meant to be type parameters, but instead get lumped in with the other parameters. This occurs because the instrumented boogie implementation signature of IsEvenLength looks like this:
Would there be any simple means of preserving the
List<TypeParameter> TypeArgs;
of the Dafny Method so that TestMethod.cs is aware of how many there are when it builds the call to the test method? I see this as difficult because the ProgramModifier is a visitor of the BoogieAST, not the Dafny AST.The text was updated successfully, but these errors were encountered: