Announcement

Collapse
No announcement yet.

[OPEN] [#2455] Parsing Error when using throw Exception after null coalescing operator

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    [OPEN] [#2455] Parsing Error when using throw Exception after null coalescing operator

    Hi,

    This code does not parse:
    _value = value ?? throw new ArgumentNullException(nameof(value));
    which is short for
    if value == null) throw new ArgumentNullException(nameof(value));
    _value = value;
    and this is the error:
    Bridge.Contract.EmitterException: Parsing error in a file ... : Unexpected symbol `throw'
    Thank you

    #2
    Hi,

    Is it C# 7 syntax? If yes then Bridge supports C# 6 only at this moment

    Comment


      #3
      Ok, it is new C#7:
      https://docs.microsoft.com/en-us/dot...ow-expressions

      Comment


        #4
        The main feature request tracking C#7 support is Issue #2455.

        We are in the process of implementing C#7 support.

        Comment

        Working...
        X