assemblyscript
assemblyscript copied to clipboard
Add resolving class via parameter types of constructor
Example
class Foo<T> {
constructor(public boo: T) {}
}
new Foo("abc"); // ERROR TS2558: Expected 1 type arguments, but got 0.
new Foo(123); // ERROR TS2558: Expected 1 type arguments, but got 0.
Expected behavior: compile without errors