Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Side by Side Diff: pkg/analyzer_cli/test/data/strong_example.dart

Issue 1459683003: `analyzer_cli` move to SDK. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: master merge Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2015, 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
5 /// This produces an error with --strong enabled, but not otherwise.
6 class MyIterable extends Iterable<String> {
7 // Error: invalid override
8 Iterator<Object> get iterator => [1, 2, 3].iterator;
9 }
10
11 main() {
12 var i = new MyIterable().iterator..moveNext();
13 print(i.current);
14
15 // Error: type check failed
16 List<String> list = <dynamic>[1, 2, 3];
17 print(list);
18 }
OLDNEW
« no previous file with comments | « pkg/analyzer_cli/test/data/plugin_options.yaml ('k') | pkg/analyzer_cli/test/data/super_mixin_example.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698