swc/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers5.ts

14 lines
118 B
TypeScript

class C {
foo: string;
}
var c: C;
interface I {
fooo: string;
}
var i: I;
c = i; // error
i = c; // error