mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
418 B
TypeScript
25 lines
418 B
TypeScript
//// [tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers5.ts] ////
|
|
|
|
//// [assignmentCompatWithObjectMembers5.ts]
|
|
class C {
|
|
foo: string;
|
|
}
|
|
|
|
declare var c: C;
|
|
|
|
interface I {
|
|
fooo: string;
|
|
}
|
|
|
|
declare var i: I;
|
|
|
|
c = i; // error
|
|
i = c; // error
|
|
|
|
//// [assignmentCompatWithObjectMembers5.js]
|
|
"use strict";
|
|
class C {
|
|
}
|
|
c = i; // error
|
|
i = c; // error
|