You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
Exception in thread "main" ceylon.language.AssertionError "Assertion failed
violated is DecimalImpl that
expression has type ceylon.language::Integer which is not a subtype of ceylon.decimal::DecimalImpl"
at ceylon.decimal.DecimalImpl.equals(DecimalImpl.ceylon:123)
at decimal.run_.run(mwe.ceylon:5)
(The code above is obviously dubious, as an Integer constant and the result of a method returning Decimal are of disjoint types, and in fact the compiler warns about this; where I ran into this, my code was comparing two objects' corresponding fields of declared type Number<out Anything>.)
The text was updated successfully, but these errors were encountered:
kingjon3377
added a commit
to kingjon3377/strategicprimer-viewer
that referenced
this issue
Sep 8, 2018
Running the following method causes an assertion failure at runtime.
The stack trace begins
(The code above is obviously dubious, as an Integer constant and the result of a method returning Decimal are of disjoint types, and in fact the compiler warns about this; where I ran into this, my code was comparing two objects' corresponding fields of declared type
Number<out Anything>
.)The text was updated successfully, but these errors were encountered: