Files
marqdo/tests/structure/inherit-explicit-super.mq.md
T
cflmyandCursor 2a9fceb51c Land OKF aliases, view SSE, workbook nav, and explicit parent ctor.
Complete the core agent roadmap: soft KB hits via Task aliases, EventBus-backed view streaming, D4 writeback/workbook navigation, and I3 explicit-super without implicit auto-super.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 11:58:26 +08:00

29 lines
554 B
Markdown

---
title: inherit explicit parent constructor
> lib/json.mq.md
---
# Parent
+ `name`
*`out` = > json.parse text={"role":"parent"} *
*`out` = > json.set map=`out` key=name value=`name` *
**`out`**
# Child = > Parent
+ `name`
*`self` = > Parent name=`name` *
*`self` = > json.set map=`self` key=role value=child *
**`self`**
# main
*`c` = > Child name=Ada *
*`ty` = > json.get value=`c` key=_type *
*`role` = > json.get value=`c` key=role *
*`name` = > json.get value=`c` key=name *
> print text=`ty`
> print text=`role`
> print text=`name`