Files
tsgo/testdata/baselines/reference/submodule/compiler/genericInstanceOf.js

28 lines
454 B
TypeScript

//// [tests/cases/compiler/genericInstanceOf.ts] ////
//// [genericInstanceOf.ts]
interface F {
(): number;
}
class C<T> {
constructor(public a: T, public b: F) {}
foo() {
if (this.a instanceof this.b) {
}
}
}
//// [genericInstanceOf.js]
"use strict";
class C {
constructor(a, b) {
this.a = a;
this.b = b;
}
foo() {
if (this.a instanceof this.b) {
}
}
}