This repository was archived by the owner on Feb 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Spurious Downcast info messages for const. #8
Comments
Example should read Foo.BAR in the Baz class. BAR needs to be declared as a String to avoid the cast ... or we need inference. |
FYI - I went ahead and applied Vijay's change to the code snippet in Jacob's post. I think we should definitely do inference of const expressions. Note that if you do: |
Closed
I'll take a look |
@sigmundch is this working now? |
yes, this is now fixed. transitive inference between consts is still in the works though :) |
Closed
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I don't think this code should be generating a downcast. BAR should have static type String.
Repo:
Note this seems to impact all const and final fields. Fixing this bug will fix a large number of the DownCasts.
The text was updated successfully, but these errors were encountered: