add ExistentialTypeParam - fixes #2587

This commit is contained in:
Sebastian McKenzie
2015-11-03 13:48:03 +00:00
parent c3b1b25966
commit 4016bae694
4 changed files with 192 additions and 2 deletions

View File

@@ -56,6 +56,8 @@ tt.parenR.updateContext = tt.braceR.updateContext = function () {
};
tt.name.updateContext = function (prevType) {
this.state.exprAllowed = false;
if (prevType === tt._let || prevType === tt._const || prevType === tt._var) {
if (lineBreak.test(this.input.slice(this.state.end))) {
this.state.exprAllowed = true;