Accept additional baselines

This commit is contained in:
Anders Hejlsberg 2016-10-31 15:43:50 -07:00
parent 03f8403e85
commit 8d9356f264
2 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
maxDepthExceeded/root.ts(3,1): error TS2322: Type '"10"' is not assignable to type 'number'.
maxDepthExceeded/root.ts(4,1): error TS2322: Type '42' is not assignable to type 'true'.
maxDepthExceeded/root.ts(4,4): error TS2540: Cannot assign to 'rel' because it is a constant or a read-only property.
==== entry.js (0 errors) ====
@ -36,8 +36,8 @@ maxDepthExceeded/root.ts(4,1): error TS2322: Type '42' is not assignable to type
~~~~~~~
!!! error TS2322: Type '"10"' is not assignable to type 'number'.
m1.rel = 42; // Error: Should be boolean
~~~~~~
!!! error TS2322: Type '42' is not assignable to type 'true'.
~~~
!!! error TS2540: Cannot assign to 'rel' because it is a constant or a read-only property.
m1.f2.person.age = "10"; // OK if stopped at 2 modules: person will be "any".

View file

@ -1,5 +1,5 @@
maxDepthExceeded/root.ts(3,1): error TS2322: Type '"10"' is not assignable to type 'number'.
maxDepthExceeded/root.ts(4,1): error TS2322: Type '42' is not assignable to type 'true'.
maxDepthExceeded/root.ts(4,4): error TS2540: Cannot assign to 'rel' because it is a constant or a read-only property.
==== entry.js (0 errors) ====
@ -36,8 +36,8 @@ maxDepthExceeded/root.ts(4,1): error TS2322: Type '42' is not assignable to type
~~~~~~~
!!! error TS2322: Type '"10"' is not assignable to type 'number'.
m1.rel = 42; // Error: Should be boolean
~~~~~~
!!! error TS2322: Type '42' is not assignable to type 'true'.
~~~
!!! error TS2540: Cannot assign to 'rel' because it is a constant or a read-only property.
m1.f2.person.age = "10"; // OK if stopped at 2 modules: person will be "any".