Files
TypeScript/tests/cases/compiler
uhyo b6f09ccf06 Better error message for unparenthesized function/constructor type notation in union/intersection types (#39570)
* add graceful error message for unparenthesized function types in union and intersection

* add unparenthesizedFunctionTypeInUnionOrIntersection test

* add unparenthesizedConstructorTypeInUnionOrIntersection test

* Update src/compiler/parser.ts

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>

* pass isInUnionType to parseFunctionOrConstructorTypeToError

* Apply suggestions from code review

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>

* syntax fix

* refactor isStartOfFunctionType into isStartOfFunctionTypeOrConstructorType

* Update src/compiler/parser.ts

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>

* hoist isUnionType

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-07-15 14:43:56 -07:00
..
2020-06-17 03:28:55 -04:00
2019-06-28 17:09:22 -10:00
2020-06-17 03:28:55 -04:00
2019-09-20 17:17:39 -07:00
2019-04-27 07:51:05 -07:00
2019-05-30 17:35:10 -07:00
2019-06-27 16:48:00 -10:00
2019-12-09 16:31:23 -08:00
2019-05-23 17:09:17 -07:00
2019-05-01 13:57:47 -07:00
2019-04-24 16:43:17 -07:00
2019-04-24 16:43:17 -07:00
2019-10-13 09:45:56 -07:00