Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: Scala 2.10.0
    • Fix Version/s: Scala 2.10.0-M5
    • Component/s: Pattern Matcher
    • Environment:

      Welcome to Scala version 2.10.0-20120711-201030-4aeaf9015b (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_24).

      Description

      class A { Self =>
       (null, this) match { case (_, Self) =>  }
      }
      

      results in

      error: unsupported pattern: A.this(a class scala.reflect.internal.Trees$This)
      

      worked fine in 2.9.2

        Activity

        Show
        Adriaan Moors added a comment - https://github.com/scala/scala/pull/941
        Hide
        Dominik Gruntz added a comment -

        I found the example in a piece of code on codereview.stackexchange.

        Show
        Dominik Gruntz added a comment - I found the example in a piece of code on codereview.stackexchange .

          People

          • Assignee:
            Adriaan Moors
            Reporter:
            Dominik Gruntz
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development