summaryrefslogtreecommitdiff
path: root/test/pending/pos/bug112606B.scala
blob: 6dfaf4bf015190a93ff9fbb1b1e0d834d5815142 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
package test;
trait Test2 {
  case class Token(text : String);
  class KeywordToken(text : String) extends Token(text);
  def decode(tok : KeywordToken) = tok match {
  // constructor cannot be instantiated to expected type;
  //  found   : Test2.this.Token
  //  required: Test2.this.KeywordToken
  case Token("final") => true;
  }
}