lean2/tests/lean/run/rat_coe.lean

18 lines
208 B
Text
Raw Normal View History

import data.rat
open rat
attribute rat.of_int [coercion]
check (0 : )
check (rat.of_int 0 : )
constant f : → Prop
variable a : nat
check f 0
check f a
set_option pp.coercions true
check f a