lean4-htt/tests/lean/run/anonymousCtor.lean
Leonardo de Moura 8735820b49 fix: anonymous constructor too restrictive
We should support (recursive) inductive datatypes that have only one
constructor. We use this feature in the current `src/Lean` code base.
2020-10-16 07:58:47 -07:00

7 lines
95 B
Text

#lang lean4
inductive S
| mk : List S → String → S
def f (s : String) : S :=
⟨[], s⟩