It should be a warning when operator [] and operator []= don't have compatible types #15175
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
According to dangling.feet on misc@, this doesn't cause a warning:
class M<T> {
void operator[]=(String key, int value) {
}
String operator[](int i) {
}
}
Perhaps it should.
The text was updated successfully, but these errors were encountered: