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

Side by Side Diff: pkg/front_end/testcases/inference_new/multiple_interface_inheritance.dart

Issue 3010483002: Add tests demonstrating bugs #30547 and #30552. (Closed)
Patch Set: Created 3 years, 3 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
(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
5 /*@testedFeatures=inference*/
6 library test;
7
8 abstract class I1 {
9 void f(int i);
10 }
11
12 abstract class I2 {
13 void f(Object o);
14 }
15
16 abstract class C implements I1, I2 {}
17
18 class D extends C {
19 void f(Object o) {}
20 }
21
22 abstract class E implements I2, I1 {}
23
24 class F extends E {
25 void f(Object o) {}
26 }
27
28 void g1(C c) {
29 c. /*@target=I2::f*/ f('hi');
30 }
31
32 void g2(E e) {
33 e. /*@target=I2::f*/ f('hi');
34 }
35
36 main() {
37 g1(new D());
38 g2(new F());
39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698