summaryrefslogtreecommitdiff
path: root/tests/lean
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/lean/hashmap/Base/Primitives.lean3
-rw-r--r--tests/lean/hashmap_on_disk/Base/Primitives.lean3
-rw-r--r--tests/lean/misc-constants/Base/Primitives.lean3
-rw-r--r--tests/lean/misc-external/Base/Primitives.lean3
-rw-r--r--tests/lean/misc-loops/Base/Primitives.lean3
-rw-r--r--tests/lean/misc-no_nested_borrows/Base/Primitives.lean3
-rw-r--r--tests/lean/misc-paper/Base/Primitives.lean3
-rw-r--r--tests/lean/misc-polonius_list/Base/Primitives.lean3
8 files changed, 24 insertions, 0 deletions
diff --git a/tests/lean/hashmap/Base/Primitives.lean b/tests/lean/hashmap/Base/Primitives.lean
index 034f41b2..4a66a453 100644
--- a/tests/lean/hashmap/Base/Primitives.lean
+++ b/tests/lean/hashmap/Base/Primitives.lean
@@ -49,6 +49,9 @@ deriving Repr, BEq
open Result
+instance Result_Inhabited (α : Type u) : Inhabited (Result α) :=
+ Inhabited.mk (fail panic)
+
/- HELPERS -/
def ret? {α: Type} (r: Result α): Bool :=
diff --git a/tests/lean/hashmap_on_disk/Base/Primitives.lean b/tests/lean/hashmap_on_disk/Base/Primitives.lean
index 034f41b2..4a66a453 100644
--- a/tests/lean/hashmap_on_disk/Base/Primitives.lean
+++ b/tests/lean/hashmap_on_disk/Base/Primitives.lean
@@ -49,6 +49,9 @@ deriving Repr, BEq
open Result
+instance Result_Inhabited (α : Type u) : Inhabited (Result α) :=
+ Inhabited.mk (fail panic)
+
/- HELPERS -/
def ret? {α: Type} (r: Result α): Bool :=
diff --git a/tests/lean/misc-constants/Base/Primitives.lean b/tests/lean/misc-constants/Base/Primitives.lean
index 034f41b2..4a66a453 100644
--- a/tests/lean/misc-constants/Base/Primitives.lean
+++ b/tests/lean/misc-constants/Base/Primitives.lean
@@ -49,6 +49,9 @@ deriving Repr, BEq
open Result
+instance Result_Inhabited (α : Type u) : Inhabited (Result α) :=
+ Inhabited.mk (fail panic)
+
/- HELPERS -/
def ret? {α: Type} (r: Result α): Bool :=
diff --git a/tests/lean/misc-external/Base/Primitives.lean b/tests/lean/misc-external/Base/Primitives.lean
index 034f41b2..4a66a453 100644
--- a/tests/lean/misc-external/Base/Primitives.lean
+++ b/tests/lean/misc-external/Base/Primitives.lean
@@ -49,6 +49,9 @@ deriving Repr, BEq
open Result
+instance Result_Inhabited (α : Type u) : Inhabited (Result α) :=
+ Inhabited.mk (fail panic)
+
/- HELPERS -/
def ret? {α: Type} (r: Result α): Bool :=
diff --git a/tests/lean/misc-loops/Base/Primitives.lean b/tests/lean/misc-loops/Base/Primitives.lean
index 034f41b2..4a66a453 100644
--- a/tests/lean/misc-loops/Base/Primitives.lean
+++ b/tests/lean/misc-loops/Base/Primitives.lean
@@ -49,6 +49,9 @@ deriving Repr, BEq
open Result
+instance Result_Inhabited (α : Type u) : Inhabited (Result α) :=
+ Inhabited.mk (fail panic)
+
/- HELPERS -/
def ret? {α: Type} (r: Result α): Bool :=
diff --git a/tests/lean/misc-no_nested_borrows/Base/Primitives.lean b/tests/lean/misc-no_nested_borrows/Base/Primitives.lean
index 034f41b2..4a66a453 100644
--- a/tests/lean/misc-no_nested_borrows/Base/Primitives.lean
+++ b/tests/lean/misc-no_nested_borrows/Base/Primitives.lean
@@ -49,6 +49,9 @@ deriving Repr, BEq
open Result
+instance Result_Inhabited (α : Type u) : Inhabited (Result α) :=
+ Inhabited.mk (fail panic)
+
/- HELPERS -/
def ret? {α: Type} (r: Result α): Bool :=
diff --git a/tests/lean/misc-paper/Base/Primitives.lean b/tests/lean/misc-paper/Base/Primitives.lean
index 034f41b2..4a66a453 100644
--- a/tests/lean/misc-paper/Base/Primitives.lean
+++ b/tests/lean/misc-paper/Base/Primitives.lean
@@ -49,6 +49,9 @@ deriving Repr, BEq
open Result
+instance Result_Inhabited (α : Type u) : Inhabited (Result α) :=
+ Inhabited.mk (fail panic)
+
/- HELPERS -/
def ret? {α: Type} (r: Result α): Bool :=
diff --git a/tests/lean/misc-polonius_list/Base/Primitives.lean b/tests/lean/misc-polonius_list/Base/Primitives.lean
index 034f41b2..4a66a453 100644
--- a/tests/lean/misc-polonius_list/Base/Primitives.lean
+++ b/tests/lean/misc-polonius_list/Base/Primitives.lean
@@ -49,6 +49,9 @@ deriving Repr, BEq
open Result
+instance Result_Inhabited (α : Type u) : Inhabited (Result α) :=
+ Inhabited.mk (fail panic)
+
/- HELPERS -/
def ret? {α: Type} (r: Result α): Bool :=