Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible types: Object vs void with invocation of grouped expression #2409

Open
lucaswerkmeister opened this issue Oct 30, 2015 · 2 comments
Labels
Milestone

Comments

@lucaswerkmeister
Copy link
Member

Anything a = (print)("");

source/tmp/run.ceylon:1: error: incompatible types

Anything a = (print)("");
                    ^

required: Object
found: void

Found while investigating ceylon/ceylon-spec#1456.

As always, generated code, @noanno’d.

@lucaswerkmeister
Copy link
Member Author

Here’s the generated code for the unwrapped version: gist.

The compiler generates a let expression returning null.

@jvasileff
Copy link
Member

Perhaps somewhat related to #2387

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

No branches or pull requests

3 participants