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

Side by Side Diff: pkg/front_end/testcases/rasta/type_literals.dart

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: Created 3 years, 8 months 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
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 typedef void Func(); 5 typedef void Func();
6 6
7 class C<T> { 7 class C<T> {
8 test() { 8 test() {
9 // Note: we cannot write a type literal with generic type arguments. For 9 // Note: we cannot write a type literal with generic type arguments. For
10 // example, `C<String>` isn't a valid expression. 10 // example, `C<String>` isn't a valid expression.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 } 101 }
102 102
103 use(x) { 103 use(x) {
104 if (x == new DateTime.now().millisecondsSinceEpoch) throw "Shouldn't happen"; 104 if (x == new DateTime.now().millisecondsSinceEpoch) throw "Shouldn't happen";
105 } 105 }
106 106
107 main() { 107 main() {
108 new C().test(); 108 new C().test();
109 } 109 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698