We should support (recursive) inductive datatypes that have only one constructor. We use this feature in the current `src/Lean` code base.
7 lines
95 B
Text
7 lines
95 B
Text
#lang lean4
|
|
|
|
inductive S
|
|
| mk : List S → String → S
|
|
|
|
def f (s : String) : S :=
|
|
⟨[], s⟩
|