fix(check): 0.R4 - a misspelled type in a parameter, a result or a field is refused where it is written
`function kind_of(f: CharFact)` for a CharacterFact was taken on trust and failed in the code writer as "member access on non-aggregate". A capitalised type - plain, in a slice, or a generic's argument - must name a declared property, record, state, event, enum, action or packed value type, or a type parameter of its declaration: `kind_of's parameter f: there is no type CharFact`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c35481f344
commit
2eefae0618
10 changed files with 13423 additions and 10801 deletions
|
|
@ -1027,6 +1027,8 @@ function cmd_dev_test() -> int {
|
|||
migrate_prune_case()
|
||||
vis_report_case("rejected/uses_missing", "uses: examples/rejected/uses_valley/items/index.ludic:3: items.inv_add used from", "LUDIC_VIS_REPORT=1 lists a uses violation and builds")
|
||||
feat_case("lang/checked", "", "7.5 3 12 hi 2 ok", "checked.ludic (L4: literals take their slot's kind, string(p), []string as []pointer, null, named args)")
|
||||
reject_case("rejected/unknown_type", "kind_of's parameter f: there is no type CharFact", "a misspelled type in a parameter is refused where it is written")
|
||||
reject_case("rejected/unknown_field_type", "Sheet.facts: there is no type CharFact", "a misspelled type in a field is refused where it is written")
|
||||
reject_case("rejected/param_twice", "add names two parameters n", "a parameter named twice is refused")
|
||||
reject_case("rejected/wrong_arity", "this call to area leaves out h, which has no default", "a call with the wrong number of arguments is refused")
|
||||
reject_case("rejected/float_into_int", "metres wants an int and this is a float", "a float computed into an int is refused")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue