Specification: Introduce a notion of static invocations #3759
Labels
specification
technical-debt
Dealing with a part of the language which needs clarification or adjustments
Cf. dart-lang/sdk#34492, we need the special rule
in order to ensure that
int.toString()
and similar "Object
instance method invocations" is a compile-time error. It would be better to specify all static invocations directly and as a separate concept, and then hopefully we could delete this special rule. With that, the expressionint.toString()
would be a compile-time error because (1) it is a static invocation, sotoString
can only be a static method, (2) there is no such static method.The text was updated successfully, but these errors were encountered: