TypeScript/tests/cases/compiler/typedGenericPrototypeMember.ts
2014-07-12 17:30:19 -07:00

6 lines
113 B
TypeScript

class List<T> {
add(item: T) { }
}
List.prototype.add("abc"); // Valid because T is instantiated to any