File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11-- Error: tests/neg/i11226.scala:13:36 ---------------------------------------------------------------------------------
2213 | def test(a: ActorRef): Unit = bus.unsubscribe(a) // error
33 | ^
4- | Cannot resolve reference to type (Unsubscriber.this.bus : ManagedActorClassification).Subscriber.
5- | Subscriber exists as a member of the self type ActorEventBus of trait ManagedActorClassification
6- | but it cannot be referenced from a scope that does not extend that trait.
4+ | Cannot resolve reference to type (Unsubscriber.this.bus : ManagedActorClassification).Subscriber.
5+ | Subscriber exists as a member of the self type ActorEventBus of trait ManagedActorClassification
6+ | but it cannot be called on a receiver whose type does not extend trait ManagedActorClassification .
Original file line number Diff line number Diff line change 11-- [E007] Type Mismatch Error: tests/neg/i11226a.scala:12:48 -----------------------------------------------------------
2212 | def test(a: ActorRef): Unit = bus.unsubscribe(a) // error
33 | ^
4- | Found: (a : ActorRef)
5- | Required: Unsubscriber.this.bus.Subscriber
4+ | Found: (a : ActorRef)
5+ | Required: Unsubscriber.this.bus.Subscriber
66 |
7- | Note that I could not resolve reference Unsubscriber.this.bus.Subscriber.
8- | Subscriber exists as a member of the self type ActorEventBus of trait ManagedActorClassification
9- | but it cannot be referenced from a scope that does not extend that trait
10- |
7+ | Note that I could not resolve reference Unsubscriber.this.bus.Subscriber.
8+ | Subscriber exists as a member of the self type ActorEventBus of trait ManagedActorClassification
9+ | but it cannot be called on a receiver whose type does not extend trait ManagedActorClassification
10+ |
1111 |
1212 | longer explanation available when compiling with `-explain`
You can’t perform that action at this time.
0 commit comments