aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-11-12 11:13:50 +0100
committerGaëtan Gilbert2020-11-13 12:55:35 +0100
commit89f5d2503d68dae235b9c2153d34f0def30ff626 (patch)
tree3dcf3a5a45b6f91baf7e3f9460fad07ec3b76c51 /test-suite
parente733f11f54cb847271c13f79538e8823c4d93038 (diff)
Make the universe of primitive arrays irrelevant
Fix #13354 This change is very specific to array, but should not be a significant obstacle to generalization of the feature to eg axioms if we want to later.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_13354.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_13354.v b/test-suite/bugs/closed/bug_13354.v
new file mode 100644
index 0000000000..fbda10a9d2
--- /dev/null
+++ b/test-suite/bugs/closed/bug_13354.v
@@ -0,0 +1,10 @@
+
+Primitive array := #array_type.
+
+Definition testArray : array nat := [| 1; 2; 4 | 0 : nat |].
+
+Definition on_array {A:Type} (x:array A) : Prop := True.
+
+Check on_array testArray.
+
+Check @on_array nat testArray.