diff --git a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithStringIndexer.ts b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithStringIndexer.ts index b6f4927563f..fa0f66b5028 100644 --- a/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithStringIndexer.ts +++ b/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithStringIndexer.ts @@ -41,8 +41,8 @@ namespace Generics { b2 = a1; // error function foo() { - declare var b3: { [x: string]: Derived; }; - declare var a3: A; + var b3: { [x: string]: Derived; }; + var a3: A; a3 = b3; // error b3 = a3; // error