| [#1010] | project: compiler | priority: high | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Burak | Martin | fixed | 2007-03-22 16:22:00.0 | |
| subject | adrian's bug: selecting class on unstable term doesn't work | |||
| code |
class MailBox {
class Message
//type Message = AnyRef
}
abstract class Actor {
private val in = new MailBox
def send(msg: in.Message) = error("foo")
def unstable: Actor = 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
}
|
|||
| what happened | |
|||
| what expected | no error | |||
| [back to overview] | ||||
| Martin edited on 2007-03-23 12:49:56.0 |