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

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

Open
CeylonMigrationBot opened this issue Oct 30, 2015 · 2 comments

Comments

@CeylonMigrationBot
Copy link

CeylonMigrationBot commented Oct 30, 2015

[@lucaswerkmeister]

Anything a = (print)("");

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

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

required: Object
found: void

Found while investigating #4562.

As always, generated code, @noanno’d.

[Migrated from ceylon/ceylon-compiler#2409]

@CeylonMigrationBot
Copy link
Author

[@lucaswerkmeister] Here’s the generated code for the unwrapped version: gist.

The compiler generates a let expression returning null.

@CeylonMigrationBot
Copy link
Author

[@jvasileff] Perhaps somewhat related to #2387

@CeylonMigrationBot CeylonMigrationBot added this to the 1.2.1 milestone Nov 14, 2015
@FroMage FroMage modified the milestones: 1.2.1, 1.2.2 Jan 11, 2016
@FroMage FroMage modified the milestones: 1.2.2, 1.2.3 Feb 18, 2016
@FroMage FroMage modified the milestones: 1.2.3, 1.3 Aug 23, 2016
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