Repository navigation
Commit 925dcfc
authored
The issue's diagnosis was wrong and so was the brief: not native-base wiring, not the CLASS_PROTOTYPE_OBJECTS split, not Map/Set. new MyMap<string,number>() constructs MyMap$str_num with its own class id while instanceof MyMap resolves the generic's id, which is in no parent chain. Proven by bisect: class GenPlain<T> {} with no Map and no base fails identically, while non-generic Bee extends A extends Map works. Adds Class::specialized_from -> js_register_class_generic_origin -> one shared depth-bounded class_chain_reaches (replacing two hand-rolled copies, one uncapped) that follows the origin edge as well as extends -- deliberately not a parent edge, since CLASS_REGISTRY's chain also resolves super(), static lookup and vtable dispatch. Covers the Array sibling too; #7541's note was stale.
1 parent bce1045 commit 925dcfc
53 files changed
Lines changed: 601 additions & 118 deletions
File tree
- changelog.d
- crates
- perry-codegen
- src
- codegen
- typed_abi
- collectors
- lower_call
- field_init
- runtime_decls
- stmt
- tests
- perry-hir/src
- analysis
- ir
- lower_decl
- lower
- module_decl
- monomorph
- stable_hash
- perry-runtime/src/object
- perry-transform/src
- deforest
- generator
- inline
- perry/src/commands/compile
- test-files
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments