lean4-htt/tests/pkg/prv/Prv/Foo.lean
Sebastian Ullrich ad5a746cdd
fix: realizeConst fixes (#7272)
Emerged and fixed while adding more `realizeConst` callers
2025-02-28 14:59:13 +00:00

13 lines
253 B
Text

private def a := 10
structure Foo where
private val : Nat
name : String
#check { name := "leo", val := 15 : Foo }
#check { name := "leo", val := 15 : Foo }.val
structure Name (x : String) where
private mk ::
val : String := x
deriving Repr