Default values in combination with object destructuring are not type checked within function declarations. #19127
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
TypeScript Version: 2.5.3
Code
Expected behavior:
Default values - in combination with object destructuring - should also be type checked in the function declaration.
Actual behavior:
Default values - in combination with object destructuring - are not type checked in the function declaration. Noticed this behaviour for both string literals and enums.
The text was updated successfully, but these errors were encountered: