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
When a (non-polymorphic, for this case see #6) method invocation triggers an effect mismatch error, it would be helpful to simply display the latent effect of the invoked method.
This example fails because println() does not have effect annotations:
def foo: Unit @mod() = {
println()
}
The error message requires some time to understand:
T.scala:42: error: effect type mismatch;
found : @mod(any) @assign(any) @loc(any) @throws[Throwable] @io
required: @mod() @loc(any) @throws[Throwable] @io
@mod(any) does not conform to @mod()
@assign(any) does not conform to @assign()
println()
^
four errors found
The text was updated successfully, but these errors were encountered:
When a (non-polymorphic, for this case see #6) method invocation triggers an effect mismatch error, it would be helpful to simply display the latent effect of the invoked method.
This example fails because
println()
does not have effect annotations:The error message requires some time to understand:
The text was updated successfully, but these errors were encountered: