Skip to content

Errors with concretisations.  #68

@fuhrmanator

Description

@fuhrmanator

There's a case where a concretization is being missed, namely Array which is a concretization of Array. The error shows up in the test/concreteAndGenericParameter.test.ts case.

2024-08-14 18:50:06.202     ERROR   \src\famix_functions\EntityDictionary.ts:1338   ts2famix        fmxParameterConcretisation was 
undefined for concretisation with concrete entity {node_modules/typescript/lib/lib.es5.d.ts}.Array<any>[InterfaceDeclaration] and 
generic entity {node_modules/typescript/lib/lib.es5.d.ts}.Array<T>[InterfaceDeclaration]

Probably the code that provokes this is the lines:

export interface ClassList<T> extends Array<any> {
  [index: number]: T | ClassList<T>;
  0: T;
}

It's a case that's special (I think), since Array<any> is a concretization of Array<T> but Array<any> is used as the extended type of ClassList<T>.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions