Skip to content

Commit 03a74e7

Browse files
committed
add currently failing tests
1 parent f6a6743 commit 03a74e7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test-suite/success/Template.v

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,16 @@ Module BoundedQuality.
243243
Check dumb' true Set.
244244
End BoundedQuality.
245245

246+
Module BoundedQuality2.
247+
Inductive dumb' (A:Type) (b:bool) (B : Type) := cons' : A -> (b = true -> dumb' A false nat) -> dumb' A b B.
248+
249+
Check dumb' True true Set : Prop.
250+
Fail Check dumb' nat true Set : Prop.
251+
Check dumb' nat true Set : Set.
252+
Fail Check dumb' Set true Set : Set.
253+
Check dumb' Set true Set.
254+
End BoundedQuality2.
255+
246256
Module UnminimizedOption.
247257
Unset Universe Minimization ToSet.
248258
Inductive option A := None | Some (_:A).
@@ -253,6 +263,17 @@ Module UnminimizedOption.
253263
Check option Set : Type.
254264
End UnminimizedOption.
255265

266+
Module UnminimizedFunction.
267+
Unset Universe Minimization ToSet.
268+
Inductive Foo (T:Type) := foo (_:nat -> T).
269+
270+
Check Foo True : Prop.
271+
Fail Check Foo nat : Prop.
272+
Check Foo nat : Set.
273+
Fail Check Foo Set : Set.
274+
Check Foo Set : Type.
275+
End UnminimizedFunction.
276+
256277
Module ExplicitOption.
257278
Inductive option@{u} (A:Type@{u}) : Type@{u} := None | Some (_:A).
258279

0 commit comments

Comments
 (0)