Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 import 'dart:collection'; | |
| 5 | |
| 6 class MyList extends Object with ListMixin { | |
| 7 int length = 0; | |
| 8 operator[](index) => null; | |
| 9 void operator[]=(index, value) {} | |
| 10 } | |
| 11 | |
| 12 main() { | |
| 13 new MyList().length; | |
| 14 } | |
| OLD | NEW |