Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-beta-2
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Should support this

      switch (foo) {

      // use a regex to match
      case /a|b/:
      ...

      // use a value
      case "hello":
      ...

      // use a list of values
      case ['d', 'e']:
      ...

      // use a type
      case SomeType:
      ...
      }

        Activity

        Sam Pullara made changes -
        Field Original Value New Value
        Type Bug [ 1 ] New Feature [ 2 ]
        Description Should support this

        switch (foo) {

          // use a regex to match
          case /a|b/:
        ...

          // use a value
          case "hello":
        ...

          // use a list of values
         case ['d', 'e']:
          ...

          // use a type
          case SomeType:
            ...
        }
        Should support this

        switch (foo) {

          // use a regex to match
          case /a|b/:
        ...

          // use a value
          case "hello":
        ...

          // use a list of values
         case ['d', 'e']:
          ...

          // use a type
          case SomeType:
            ...
        }
        Hide
        james strachan added a comment -

        fixed

        Show
        james strachan added a comment - fixed
        james strachan made changes -
        Assignee james strachan [ jstrachan ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]

          People

          • Assignee:
            james strachan
            Reporter:
            james strachan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: