Book a Demo

Author Topic: Issue with default parameters in C# 4 code  (Read 2929 times)

oleg boldyrev

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Issue with default parameters in C# 4 code
« on: May 05, 2011, 04:37:22 pm »
Lines of the type "... RequestDocuments1(ShoppingCartEntities context = null)" cause error messages "There was an error parsing D:\ProjHLInks\ShoppingCart\ShoppingCartBLTest\ShoppingCartUnitTests.cs on line 26.  Unexpected symbol: =      "  and the corresponding class seems to not being loaded during the import.
Will it be fixed in v 9?

I was sure this was already mentioned but failed to find any other report.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Issue with default parameters in C# 4 code
« Reply #1 on: May 05, 2011, 04:44:16 pm »
Yes.  This should be fixed in EA 9.  Try installing the latest beta release and see if it resolves your problem.
http://www.sparxsystems.com/products/betas.html