Announcement

Collapse
No announcement yet.

[FIXED] [#3994] Optional Params of Enum Types are not generated correctly in 17.8

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

    [FIXED] [#3994] Optional Params of Enum Types are not generated correctly in 17.8

    C#
          
    public enum VeranstaltungReferentListViewTypes { Aktiv, All, Entwurf, Vorgeschlagen, VorgeschlagenUndAkzeptiert }
    public VeranstaltungReferentListView(VeranstaltungReferentListViewTypes defaultViewType = VeranstaltungReferentListViewTypes.Aktiv) {...}
    JS
            ctors: {
                ctor: function (defaultViewType) {
                    if (defaultViewType === void 0) { defaultViewType = ; }
    Default Value is missing resulting in a syntax error in js code.
    Last edited by fabricio.murta; 2019-06-13 @ 07:14 PM.

    #2
    Hi. Thanks for the report. Just to ensure we're all looking at the exact same thing, can you share a Deck.NET sample demonstrating the problem scenario?

    Comment


      #3
      Here is a sample:

      https://deck.net/3e3dc8f8816cc012ef19116cded7ba61

      public class Program
      {
          public void TestFnc(TestEnum testEnum = TestEnum.Test) { }
      }
      
      public enum TestEnum
      {
          Test,
          Test01
      }
      Last edited by geoffrey.mcgill; 2019-06-08 @ 03:43 PM.

      Comment


        #4
        Hello Markus

        We got a pull req from Vladimir fixing this issue and it looks great! The fix will be included in the next Bridge release! Currently it is set to be 17.9.0, as we already have some features added to the batch of changes.

        (the version number it gets released to may change depending of a series of things, but we'll keep the github issue up-to-date with the version number in its milestone!)

        By the way, Vladimir also created the issue #3994 in github to track the problem!

        Thanks for reporting the issue and providing the deck to reproduce it!

        Comment

        Working...
        X