Announcement

Collapse
No announcement yet.

[CLOSED] [#874] [1.11]: Inline Code doesn't work inside a switch-statement

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

    [CLOSED] [#874] [1.11]: Inline Code doesn't work inside a switch-statement

    Hello,

    please take a look at the following C#-Code:
    int myValue = 1;
    
    switch (myValue) {
      case 0:
        /*@
        alert("0");
        */
        break;
      case 1:
        /*@
        alert("1");
        */
        break;
    }
    
    /*@
    alert("this works");
    */
    generates the following JS-Output:
    var myValue = 1;
    
    switch (myValue) {
     case 0: 
      break;
     case 1: 
      break;
    }
    
    alert("this works");
    Thanks in advance & Greetings ... Peter

    #2
    Hi PeterT,

    Thanks for the report, and simple test case. I have reproduced:

    http://live.bridge.net/#2b00a1f2ac8637e1a599

    We are investigating the problem.

    Comment


      #3
      Issue #874 has been created:

      https://github.com/bridgedotnet/Bridge/issues/874

      Comment


        #4
        Hello Geoffrey,

        whow! That was lightning fast. :)

        I'm looking forward to the solution.

        Thanks & Greetings ... Peter

        Comment


          #5
          There is already a pull request with a fix. Most likely the pull request is going to be merged very soon and the fix will be included into 1.11 release.

          Comment


            #6
            Hi PeterT ,

            ‚ÄčThe issue has been fixed and will be included into 1.11 release.

            Thank you for reporting this issue.

            Comment


              #7
              Hello Leonid,

              works like a charm! Thanks a lot!

              Greetings ... Peter

              Comment

              Working...
              X