-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Description
TypeScript Version:
1.8.10
Code
function f(a: { b?: string; c?: number; }){
// something else
}
f({b: ""}); // no error as intended
f({b: 1}); // error as intended
f(1); // expected: error, actually: no error
f(""); // expected: error, actually: no errorExpected behavior:
see comments in the code.
Actual behavior:
see comments in the code.
Metadata
Metadata
Assignees
Labels
No labels