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

Side by Side Diff: pkg/front_end/testcases/inference/infer_method_missing_params.dart

Issue 2946273002: Implement override-based type inference for instance methods. (Closed)
Patch Set: Created 3 years, 6 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 // 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() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698