Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

support direct invocations on grouped expressions #2387

Closed
CeylonMigrationBot opened this issue Oct 24, 2015 · 1 comment
Closed

support direct invocations on grouped expressions #2387

CeylonMigrationBot opened this issue Oct 24, 2015 · 1 comment

Comments

@CeylonMigrationBot
Copy link

[@jvasileff] Direct invocations on grouped expressions involving unboxed Integers can fail:

shared void run() {
    value a = ("hello ".plus) { "world"; };   // works
    value b = (("hello ".plus)) { "world"; }; // works
    value c = 1.plus { 2; };        // works
    value d = (1.plus) { 2; };      // error: error: long cannot be dereferenced
    value e = ((1.plus)) { 2; };    // error: error: long cannot be dereferenced
    value f = (Singleton)(10);      // works
}

See also #4555

[Migrated from ceylon/ceylon-compiler#2387]
[Closed at 2015-11-11 16:20:53]

@CeylonMigrationBot
Copy link
Author

[@jvasileff] Closing (superseded by #4573)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants