Skip to content

Explicit extension operator invocations tested? #495

Closed
@eernstg

Description

@eernstg

Cf. dart-lang/sdk#38895, I took a look at the co19 tests on extension methods. I think they don't cover the case where an explicitly resolved extension method invocation calls an operator (example derived from this one):

extension X on bool {
  bool operator+(bool other) => this | other;
}

main() {
  print(X(false) + true);
}

I searched for strings like ) + and ) *, but did not find examples where this feature is used.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions