Skip to content

Commit

Permalink
Add test for issue #5647
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelMayer committed Aug 5, 2024
1 parent b1aa83d commit b9757ff
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// RUN: %testDafnyForEachCompiler "%s"

function method {:tailrecursion} GetMaps(
opts : string,
shortMap : map<char, string> := map[])
: map<char, string>
{
if |opts| == 0 then
shortMap
else
var shortMap := shortMap[opts[0] := "spoo"];
GetMaps(opts[1..], shortMap)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

Dafny program verifier finished with TODO verified, TODO errors

0 comments on commit b9757ff

Please sign in to comment.