Skip to content

Commit

Permalink
ProxyWorker: Fix build (work around eclipse-archived/ceylon#7465)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjon3377 committed Jun 5, 2020
1 parent d56d9f5 commit 2b78c31
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,10 @@ shared class ProxyWorker satisfies UnitMember&IWorker&ProxyFor<IWorker> {
proxied.any(shuffle(compose(Correspondence<Player|Integer, String>.defines, IWorker.notes))(key));

shared actual String? get(Player|Integer key) =>
getNullableConsensus<String>(shuffle(compose(Correspondence<Player|Integer,String>.get,
IWorker.notes))(key));
getNullableConsensus((worker) => worker.notes.get(key)); // TODO: Replace with method-reference logic once eclipse/ceylon#7465 fixed, if
// getNullableConsensus<String>(shuffle<String?,[IWorker],[Player|Integer]>(
// compose<String?(Player|Integer),Correspondence<Player|Integer,String>,[IWorker]>(Correspondence<Player|Integer,String>.get,
// IWorker.notes))(key));

shared actual void put(Player key, String item) {
for (proxy in proxied) {
Expand Down

0 comments on commit 2b78c31

Please sign in to comment.