9ae1265ff5
Tracking bug: https://github.com/dart-lang/sdk/issues/24731 Note, dartium build changes are in a separate CL: https://codereview.chromium.org/1453413006/ Some tests had to be disabled for want of mockito in the SDK; tracking their reimplementation is here: https://github.com/dart-lang/sdk/issues/24994 BUG=24731 R=whesse@google.com Review URL: https://codereview.chromium.org/1459683003 .
19 lines
585 B
Dart
19 lines
585 B
Dart
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
/// This produces an error with --strong enabled, but not otherwise.
|
|
class MyIterable extends Iterable<String> {
|
|
// Error: invalid override
|
|
Iterator<Object> get iterator => [1, 2, 3].iterator;
|
|
}
|
|
|
|
main() {
|
|
var i = new MyIterable().iterator..moveNext();
|
|
print(i.current);
|
|
|
|
// Error: type check failed
|
|
List<String> list = <dynamic>[1, 2, 3];
|
|
print(list);
|
|
}
|