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

Side by Side Diff: tests/language/f_bounded_quantification3_test.dart

Issue 13653005: Prevent expensive and unnecessary error formatting in the case a bound check is (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013, 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 // Test for F-Bounded Quantification.
6
7 class FBound1<F1 extends FBound1<F1, F2>, F2 extends FBound2<F1, F2>> {
8 Test() {
9 new FBound1<F1, F2>();
10 new FBound2<F1, F2>();
11 }
12 }
13
14 class FBound2<F1 extends FBound1<F1, F2>, F2 extends FBound2<F1, F2>> {
15 Test() {
16 new FBound1<F1, F2>();
17 new FBound2<F1, F2>();
18 }
19 }
20
21 class Bar extends FBound1<Bar, Baz> {}
22
23 class Baz extends FBound2<Bar, Baz> {}
24
25 main() {
26 new FBound1<Bar, Baz>().Test();
27 new FBound2<Bar, Baz>().Test();
28 }
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698