You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ node built/local/tsc.js -t es6 -m commonjs --noEmit index.ts
index.ts(6,6): error TS2345: Argument of type '4' is not assignable to parameter of type '2'.
The text was updated successfully, but these errors were encountered:
sandersn
changed the title
Default parameters shouldn't be inferred to literal types
Default values of readonly parameter properties shouldn't be treated as literal types
Oct 26, 2016
sandersn
changed the title
Default values of readonly parameter properties shouldn't be treated as literal types
Default values of readonly parameter properties shouldn't have literal types
Oct 26, 2016
TypeScript Version: master
Code
The text was updated successfully, but these errors were encountered: