ecsharp icon indicating copy to clipboard operation
ecsharp copied to clipboard

EC#: New `?>` operator causes parser errors in code like `X<T?>`

Open qwertie opened this issue 4 years ago • 1 comments

It needs to be parsed as two tokens, not one. Example:

static ThreadLocalVariable<IFoo?> _default = new ThreadLocalVariable<IFoo?>(null); // ERRORS

Workaround:

static ThreadLocalVariable<IFoo? > _default = new ThreadLocalVariable<IFoo? >(null);

Note: this is a separate and more widespread issue than #133

qwertie avatar May 10 '21 15:05 qwertie

@qwertie Language complexity to blame :/

dadhi avatar May 10 '21 17:05 dadhi