writeonce/compiler/test/golden/ast/db-stub.wo
shoney.arickathil ad806c415d feat(compiler): nullable types (?T) support
- ast.ml: Added Nullable variant to field_ty; param.ty/method_sig.ret/method_decl.ret now use field_ty
- parser.ml: Parse ? prefix for field types, return types, parameters
- dump.ml: Render ?T in --dump-ast output
- types.ml: New typechecker (Task 6) with nullable field-kind derivation (WO_K_NULLABLE=6)
- dune: Added types module
- Added golden test fixtures for nullable types and statement/expression parser
- Added implementation plan doc
2026-08-10 08:39:29 +02:00

7 lines
195 B
Text

fn sync() {
insert Product { sku: "A1", price: 10 }
select Product { sku == "A1" }
let rows = select Product { price > 5 }
INSERT Product { sku: "A2" }
SELECT Product { sku == "A2" }
}