lean4-htt/tests/lean/no_meta_rec_inst.lean
Leonardo de Moura 6d9c9b3f9a feat(library/type_context): avoid auxiliary definitions introduced by the equation compiler from being used in the type class resolution procedure
This can only happen in meta definitions, but the user may be confused
by this behavior.
2017-02-04 15:56:54 -08:00

5 lines
211 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class has_false (α : Type) :=
(f : false)
meta def n_has_false : has_false :=
by apply_instance -- Error, the "recursive" instance (n_has_false : has_false ) should not be used in type class resolution