From 97fefe1fcca363a1317e066e7f4b99b9c1e9987b Mon Sep 17 00:00:00 2001 From: Stephane Glondu Date: Thu, 12 Jan 2012 16:02:20 +0100 Subject: Imported Upstream version 8.4~beta --- test-suite/output/inference.v | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test-suite/output/inference.v (limited to 'test-suite/output/inference.v') diff --git a/test-suite/output/inference.v b/test-suite/output/inference.v new file mode 100644 index 00000000..968ea71a --- /dev/null +++ b/test-suite/output/inference.v @@ -0,0 +1,14 @@ +(* Check that types are not uselessly unfolded *) + +(* Check here that P returns something of type "option L" and not + "option (list nat)" *) + +Definition L := list nat. + +Definition P (e:option L) := + match e with + | None => None + | Some cl => Some cl + end. + +Print P. -- cgit v1.2.3