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 @ 08:14 PM.

  • fabricio.murta
    replied
    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!

    Leave a comment:


  • Markus
    replied
    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 @ 04:43 PM.

    Leave a comment:


  • geoffrey.mcgill
    replied
    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?

    Leave a comment:

Working...
X