DDC gets confused when Object
has static members.
#34387
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P1
A high priority bug; for example, a single project is unusable or has many test failures
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
This CL adds static members to
Object
.When building the SDK (
tools/build.py -mrelease -ax64 create_sdk
) I get the following error:The
path
package library lines in question are:/// A map whose keys are paths, compared using [equals] and [hash].
and
/// A set containing paths, compared using [equals] and [hash].
So, the error is in the unmatched reference in the DartDoc. Those should be [Context.equals] and [Context.hash]. However, that doesn't mean that finding the static
hash
inObject
is in any way correct, because it is not visible at that point. The reference here is still just undeclared, it is not magically referencing the staticObject.hash
, and it is not OK to make it an error.(Make it an error to have an undeclared reference, but don't invent references that are not there).
Blocking #11617
The text was updated successfully, but these errors were encountered: