This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
error on assignment of assignment expression to variable of type Anything #1917
Labels
Milestone
Comments
[@FroMage] Typical example of @gavinking implementing something and forgetting to open an issue here about it ;) |
[@FroMage] There you go, as you can see it was a piece of cake ;) |
FroMage
added a commit
that referenced
this issue
Nov 14, 2015
FroMage
added a commit
that referenced
this issue
Nov 14, 2015
FroMage
added a commit
that referenced
this issue
Nov 14, 2015
FroMage
added a commit
that referenced
this issue
Nov 14, 2015
FroMage
added a commit
that referenced
this issue
Nov 14, 2015
…ng rules for assignment now Otherwise we get things like Type x = (Type) let( Object tmpvar = nothing; y = tmpvar; // here we need to add the (Type) cast as well ) returning tmpvar; for Type x, y; x = y = nothing
FroMage
added a commit
that referenced
this issue
Nov 14, 2015
Because otherwise the Java bottom type is stored in java.lang.Object, which is not of the bottom type, so x = y = null will fail because null is stored in java.lang.Object and can't be assigned to either y or x
FroMage
added a commit
that referenced
this issue
Nov 14, 2015
I give up on trying to fix this totally unnecessary cast, because it has to do with another bug related to rawness of tuple types where we consider that they are raw without considering the fact that in fact they are erased to Sequential, which has far less constraints and rawness
FroMage
added a commit
that referenced
this issue
Nov 14, 2015
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[@jvasileff] Relating to #3544 and ceylon/ceylon-spec@ad195d3
Anything
probably doesn't make sense here that often, but it looks like a bug nevertheless. FWIW, the use case involved using a marker object formemo
's initial value, to distinguish from a Null result, and eventually doingassert(is Result ...)
, making the type largely irrelevant.[Migrated from ceylon/ceylon-compiler#1917]
[Closed at 2014-11-19 10:22:38]
The text was updated successfully, but these errors were encountered: