-
Notifications
You must be signed in to change notification settings - Fork 15
Generic Type at runTime #92
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Describe the bug
the variable with type of generic Type doesn't work
The code causing the problem
interface IFoo<T> {}
class Foo<T> implements IFoo<T> {}
const foo = new Foo<number>();
console.log(getType(foo).name);//doesn't work and print "unknown" but should print "Foo" or something similar with c#
To Reproduce
Steps to reproduce the behavior:
- Build,
- run,
- see error...
Expected behavior
getType should return Type of variable with isGenericType==true and generic args [number]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request