-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Three bugs caught by FindBugs #4459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
val receiverIsSuper = (method.name eq sym) && enclosingClass.appliedRef.widen <:< recvWiden It should be However the current implementation is very inconsistent. With the fix you would get one error for: class Foo {
def foo = 1
}
class Test extends Foo {
@tailrec
final override def foo = super.foo // error
} and two errors for: class Foo {
def foo() = 1
}
class Test extends Foo {
@tailrec
final override def foo() = super.foo() // error // error
} |
Should probably be: val boundsText =
" bounds = " + {
val assocs =
for (param <- domainParams)
yield
param.binder.paramNames(param.paramNum) + ": " + entryText(entry(param))
assocs.mkString("\n")
} |
All three bugs have been fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Using pointer equality to compare different types
on line 276 in
dotty.tools.dotc.transform.TailRec
Self comparison of value with itself
on line 62 of
dotty.tools.dotc.util.SimpleIdentitySet
Method ignores return value
in
dotty.tools.dotc.core.OrderingConstraint
, line 639The text was updated successfully, but these errors were encountered: