blob: cdba1a64d0704c4a9b37194319b455003e18d515 (
plain) (
tree)
|
|
class MailBox {
//class Message
type Message = AnyRef
}
abstract class Actor {
private val in = new MailBox
def send(msg: in.Message) = sys.error("foo")
def unstable: Actor = sys.error("foo")
def dubiousSend(msg: MailBox#Message) =
unstable.send(msg) // in.Message becomes unstable.Message, but that's ok since Message is a concrete type member
}
|