This commit is contained in:
Mohamed Hegazy 2014-09-08 12:08:15 -07:00
parent 06888e86f9
commit 4f21fb59a2
3 changed files with 8 additions and 8 deletions

View File

@ -10,10 +10,10 @@
// Expr type not assignable to target type
(<IFoo>{ a: null });
// Expr type assignanle to target type
// Expr type assignable to target type
(<IFoo>{ a: 2, b: undefined });
// Niether types is assignable to each other
// Neither types is assignable to each other
(<IFoo>{ c: null });
~~~~~~~~~~~~~~~~~
!!! Neither type '{ c: null; }' nor type 'IFoo' is assignable to the other:

View File

@ -10,17 +10,17 @@ interface IFoo {
// Expr type not assignable to target type
(<IFoo>{ a: null });
// Expr type assignanle to target type
// Expr type assignable to target type
(<IFoo>{ a: 2, b: undefined });
// Niether types is assignable to each other
// Neither types is assignable to each other
(<IFoo>{ c: null });
//// [noImplicitAnyInCastExpression.js]
// verify no noImplictAny errors reported with cast expression
// Expr type not assignable to target type
{ a: null };
// Expr type assignanle to target type
// Expr type assignable to target type
{ a: 2, b: undefined };
// Niether types is assignable to each other
// Neither types is assignable to each other
{ c: null };

View File

@ -10,8 +10,8 @@ interface IFoo {
// Expr type not assignable to target type
(<IFoo>{ a: null });
// Expr type assignanle to target type
// Expr type assignable to target type
(<IFoo>{ a: 2, b: undefined });
// Niether types is assignable to each other
// Neither types is assignable to each other
(<IFoo>{ c: null });