diff options
Diffstat (limited to 'test-suite/success')
| -rw-r--r-- | test-suite/success/InductiveVsImplicitsVsTC.v | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test-suite/success/InductiveVsImplicitsVsTC.v b/test-suite/success/InductiveVsImplicitsVsTC.v new file mode 100644 index 0000000000..9b787867fc --- /dev/null +++ b/test-suite/success/InductiveVsImplicitsVsTC.v @@ -0,0 +1,10 @@ +Class C := {}. + +Definition useC {c:C} := nat. + +Inductive foo {a b : C} := CC : useC -> foo. +(* If TC search runs before parameter unification it will pick the + wrong instance for the first parameter. + + useC makes sure we don't completely skip TC search. +*) |
