samuelgoto/proposal-optional-types

Should types be Nullable by default or not?

samuelgoto opened this issue · 0 comments

function foo(f: Foo) {
}

f(null); // Should this be a type error or not?

Just as a reference: