OLD | NEW |
(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 // All of these cases are error conditions; this test checks how we recover. |
| 9 |
| 10 abstract class A { |
| 11 int f(int x, int y); |
| 12 int g(int x, [int y]); |
| 13 int h(int x, {int y}); |
| 14 } |
| 15 |
| 16 abstract class B { |
| 17 int f(int x); |
| 18 int g(int x); |
| 19 int h(int x); |
| 20 } |
| 21 |
| 22 abstract class C implements A, B { |
| 23 /*@topType=int*/ f(/*@topType=int*/ x, /*@topType=dynamic*/ y); |
| 24 /*@topType=int*/ g(/*@topType=int*/ x, [/*@topType=dynamic*/ y]); |
| 25 /*@topType=int*/ h(/*@topType=int*/ x, {/*@topType=dynamic*/ y}); |
| 26 } |
| 27 |
| 28 main() {} |
OLD | NEW |