-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
-- Error: tests/neg/i11226.scala:13:36 --------------------------------------------------------------------------------- | ||
13 | def test(a: ActorRef): Unit = bus.unsubscribe(a) // error | ||
| ^ | ||
| Cannot resolve reference to type (Unsubscriber.this.bus : ManagedActorClassification).Subscriber. | ||
| Subscriber exists as a member of the self type ActorEventBus of trait ManagedActorClassification | ||
| but it cannot be referenced from a scope that does not extend that trait. | ||
| Cannot resolve reference to type (Unsubscriber.this.bus : ManagedActorClassification).Subscriber. | ||
| Subscriber exists as a member of the self type ActorEventBus of trait ManagedActorClassification | ||
| but it cannot be called on a receiver whose type does not extend trait ManagedActorClassification. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
-- [E007] Type Mismatch Error: tests/neg/i11226a.scala:12:48 ----------------------------------------------------------- | ||
12 | def test(a: ActorRef): Unit = bus.unsubscribe(a) // error | ||
| ^ | ||
| Found: (a : ActorRef) | ||
| Required: Unsubscriber.this.bus.Subscriber | ||
| Found: (a : ActorRef) | ||
| Required: Unsubscriber.this.bus.Subscriber | ||
| | ||
| Note that I could not resolve reference Unsubscriber.this.bus.Subscriber. | ||
| Subscriber exists as a member of the self type ActorEventBus of trait ManagedActorClassification | ||
| but it cannot be referenced from a scope that does not extend that trait | ||
| | ||
| Note that I could not resolve reference Unsubscriber.this.bus.Subscriber. | ||
| Subscriber exists as a member of the self type ActorEventBus of trait ManagedActorClassification | ||
| but it cannot be called on a receiver whose type does not extend trait ManagedActorClassification | ||
| | ||
| | ||
| longer explanation available when compiling with `-explain` |