mirror of
https://gitee.com/openharmony/third_party_typescript
synced 2024-11-23 23:10:34 +00:00
fix typo
This commit is contained in:
parent
06888e86f9
commit
4f21fb59a2
@ -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:
|
||||
|
@ -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 };
|
||||
|
@ -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 });
|
Loading…
Reference in New Issue
Block a user