core.type-check-list
- description
- Type check list literal expression deriving element type
- type
Fn(items: List<@core.expression>, env: @core.type-env) -> @core.type-result
- expression
fn(items$0, env$1) => match @core.list-get(list: $0, index: 0) { #none(_) => #error(#cannot_infer_empty_list), #some(item$1012) => match @core.type-check(expr: $1012, env: $1) { #ok(first_type$10) => @core.type-check-list-items(items: $0, env: $1, index: 1, expected_item_type: $10), #error(err$11) => #error($11) } }
- visibility
- public
core.type-check-list (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204) id: AmCh4-njDXwzwFCAcaefXu0U_Q8epnti7kl-iequWwY content hash: fZBbtVVxTD_DojVKL5GtVbsD4GOZjTo5ujrSKvpXYKc