summaryrefslogtreecommitdiff
path: root/Test/dafny0/NoTypeArgs.dfy
diff options
context:
space:
mode:
Diffstat (limited to 'Test/dafny0/NoTypeArgs.dfy')
-rw-r--r--Test/dafny0/NoTypeArgs.dfy12
1 files changed, 12 insertions, 0 deletions
diff --git a/Test/dafny0/NoTypeArgs.dfy b/Test/dafny0/NoTypeArgs.dfy
index c41c7990..88418de7 100644
--- a/Test/dafny0/NoTypeArgs.dfy
+++ b/Test/dafny0/NoTypeArgs.dfy
@@ -80,3 +80,15 @@ ghost method Lemma(xs: List, ys: List)
assert forall a, b, c :: concat(a, concat(b, c)) == concat(concat(a, b), c);
}
}
+
+// ------ Here are some test cases where the inferred arguments will be a prefix of the given ones
+
+method DoAPrefix<A, B, C>(xs: List) returns (ys: List<A>)
+{
+ ys := xs;
+}
+
+function FDoAPrefix<A, B, C>(xs: List): List<A>
+{
+ xs
+}