assemblyscript icon indicating copy to clipboard operation
assemblyscript copied to clipboard

Add resolving class via parameter types of constructor

Open MaxGraey opened this issue 3 years ago • 0 comments

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

MaxGraey avatar Aug 30 '22 17:08 MaxGraey