1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
package test; trait Test3 { trait MatchableImpl { trait MatchImpl; } trait BracePairImpl { trait BraceImpl extends MatchableImpl { private object MyMatch1 extends MatchImpl; protected def match0 : MatchImpl = MyMatch1; } } }