lean4-htt/tests/lean/unusedWarningAtStructUpdate.lean
2022-07-31 18:18:21 -07:00

7 lines
174 B
Text

set_option linter.unusedVariables true
structure Ctx where
s : String
def f (s : String) : ReaderT Ctx Id Unit :=
withReader (fun ctx => { ctx with s := s }) (pure ())