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

Side by Side Diff: tests/language_strong/function_type_call_getter2_test.dart

Issue 2765693002: Update all tests (Closed)
Patch Set: Created 3 years, 9 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 class A { 7 class A {
8 final call = null; 8 final call = null;
9 } 9 }
10 10
11 class B { 11 class B {
12 get call => null; 12 get call => null;
13 } 13 }
14 14
15 class C { 15 class C {
16 set call(x) {} 16 set call(x) {}
17 } 17 }
18 18
19 typedef int F(String str); 19 typedef int F(String str);
20 20
21 main() { 21 main() {
22 A a = new A(); 22 A a = new A();
23 B b = new B(); 23 B b = new B();
24 C c = new C(); 24 C c = new C();
25 25
26 final 26 final
27 Function /// 00: static type warning, dynamic type error 27 Function //# 00: static type warning, dynamic type error
28 a2 = a; 28 a2 = a;
29 29
30 final 30 final
31 F /// 01: static type warning, dynamic type error 31 F //# 01: static type warning, dynamic type error
32 a3 = a; 32 a3 = a;
33 33
34 final 34 final
35 Function /// 02: static type warning, dynamic type error 35 Function //# 02: static type warning, dynamic type error
36 b2 = b; 36 b2 = b;
37 37
38 final 38 final
39 F /// 03: static type warning, dynamic type error 39 F //# 03: static type warning, dynamic type error
40 b3 = b; 40 b3 = b;
41 41
42 final 42 final
43 Function /// 04: static type warning, dynamic type error 43 Function //# 04: static type warning, dynamic type error
44 c2 = c; 44 c2 = c;
45 45
46 final 46 final
47 F /// 05: static type warning, dynamic type error 47 F //# 05: static type warning, dynamic type error
48 c3 = c; 48 c3 = c;
49 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698