Open
Description
openedon Oct 31, 2015
We shouldn't require types for consts and statics unless necessary. const FOO = "foo";
or static bar = 42;
should just work. I propose that we try to infer based only on the RHS, i.e., we do not look at uses of consts/statics. Type error if we can't infer based on that. Although this would break the rule that items must be fully annotated, it would make static/const more consistent with let
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment