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

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

Issue 2765893003: Fix warnings_checker.dart handling of multitests (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 // Tests that typechecks on const objects with typedefs work. 5 // Tests that typechecks on const objects with typedefs work.
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 8
9 typedef String Int2String(int x); 9 typedef String Int2String(int x);
10 10
11 class A { 11 class A {
12 final Int2String f; 12 final Int2String f;
13 const A(this.f); 13 const A(this.f);
14 } 14 }
15 15
16 int // /// 00: static type warning, checked mode compile-time error 16 int // //# 00: static type warning, checked mode compile-time error
17 foo( 17 foo(
18 String // /// 00: continued 18 String // //# 00: continued
19 x) => 499; 19 x) => 499;
20 20
21 const a = const A(foo); 21 const a = const A(foo);
22 22
23 main() { 23 main() {
24 Expect.equals(499, a.f(499)); 24 Expect.equals(499, a.f(499));
25 } 25 }
OLDNEW
« no previous file with comments | « tests/language_strong/try_catch_test.dart ('k') | tests/language_strong/type_literal_prefix_call_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698