lean4-htt/tests/lean/run/1851.lean
Leonardo de Moura a5ab59a413 fix: fixes #1851
2022-11-19 07:01:02 -08:00

12 lines
270 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 Approx {α : Type} (a : α) (X : Type) : Type where
val : X
variable {α β X Y : Type} {f' : α → β} {x' : α} [f : Approx f' (X → Y)] [x : Approx x' X]
-- fails
#check f.val x.val
-- works
#check let f'' := f.val
let x'' := x.val
f'' x''