blob: 6dfaf4bf015190a93ff9fbb1b1e0d834d5815142 (
plain) (
tree)
|
|
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;
}
}
|