Skip to content

Commit

Permalink
Update check files
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed May 28, 2024
1 parent 66bba46 commit e1ce6b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions tests/neg/i11226.check
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.
12 changes: 6 additions & 6 deletions tests/neg/i11226a.check
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`

0 comments on commit e1ce6b9

Please sign in to comment.