No announcement yet.

C# 7 feature causing error in compiler?

  • Filter
  • Time
  • Show
Clear All
new posts

    C# 7 feature causing error in compiler?

    In Deck.NET it shows the error as I would expect (with red-underline)

    But in Visual Studio 2017 it doesn't show an issue until you compile -- at which point it provides no information on whats wrong.
    I'm surprised I tracked it down given so little information.
    Click image for larger version

Name:	2018-02-16 10_36_01-.png
Views:	2
Size:	23.1 KB
ID:	5229

    This is really tricky if the error doesn't take you to the problem. Apparently I had clicked auto-generate interface members, and it used the property getter syntax (throwing not implemented).

    Can this Bridge error be improved at some point in the future?
    Attached Files

    Hi. C#7 support is being built right now and will be included in Bridge 17.0. The feature is being tracked with Issue #2455.

    I'm not sure why Deck is showing a readable error for this C#7 scenario and VS is not. I'll have to do some digging around.



      At this moment, just set C# 6 language in project settings. It will mark all C# 7 syntax as an error.