This PR adds `optType` support to the `doPatDecl` parser, allowing `let ⟨width, height⟩ : Nat × Nat ← action` in do-notation. Previously, only the less ergonomic `let ⟨width, height⟩ : Nat × Nat := ← action` workaround was available. The type annotation is propagated to the monadic action as an expected type, matching `doIdDecl`'s existing behavior. Both the legacy and new (BuiltinDo) elaborators are updated. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Module | ||
| Tactic | ||
| Term | ||
| Attr.lean | ||
| Basic.lean | ||
| Command.lean | ||
| Do.lean | ||
| Extension.lean | ||
| Extra.lean | ||
| Level.lean | ||
| Module.lean | ||
| StrInterpolation.lean | ||
| Syntax.lean | ||
| Tactic.lean | ||
| Term.lean | ||
| Types.lean | ||