lean4-htt/tests/lean/diamond3.lean
Leonardo de Moura 272dd5533f chore: style use · instead of . for lambda dot notation
We are considering removing `.` as an alternative for `·` in the
lambda dot notation (e.g., `(·+·)`).
Reasons:
- `.` is not a perfect replacement for `·` (e.g., `(·.insert ·)`)
- `.` is too overloaded: `(f.x)` and `(f .x)` and `(f . x)`. We want to keep the first two.
2022-03-11 07:49:03 -08:00

17 lines
255 B
Text

structure A where
x : Nat := 0
y : Nat := 0
f : Nat → Nat := (· + 10)
structure B extends A where
z : Nat
structure C extends A where
w : Nat
set_option structureDiamondWarning false
structure D extends B, C where
a : Nat
#print D.toC