File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
-- Error: tests/neg/i11226.scala:13:36 ---------------------------------------------------------------------------------
2
2
13 | def test(a: ActorRef): Unit = bus.unsubscribe(a) // error
3
3
| ^
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 1
1
-- [E007] Type Mismatch Error: tests/neg/i11226a.scala:12:48 -----------------------------------------------------------
2
2
12 | def test(a: ActorRef): Unit = bus.unsubscribe(a) // error
3
3
| ^
4
- | Found: (a : ActorRef)
5
- | Required: Unsubscriber.this.bus.Subscriber
4
+ | Found: (a : ActorRef)
5
+ | Required: Unsubscriber.this.bus.Subscriber
6
6
|
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
+ |
11
11
|
12
12
| longer explanation available when compiling with `-explain`
You can’t perform that action at this time.
0 commit comments