OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 // GENERATED - DON'T EDIT. | 5 // GENERATED - DON'T EDIT. |
6 // GENERATED - DON'T EDIT. | 6 // GENERATED - DON'T EDIT. |
7 // GENERATED - DON'T EDIT. | 7 // GENERATED - DON'T EDIT. |
8 // GENERATED - DON'T EDIT. | 8 // GENERATED - DON'T EDIT. |
9 // GENERATED - DON'T EDIT. | 9 // GENERATED - DON'T EDIT. |
10 // GENERATED - DON'T EDIT. | 10 // GENERATED - DON'T EDIT. |
11 // GENERATED - DON'T EDIT. | 11 // GENERATED - DON'T EDIT. |
12 // GENERATED - DON'T EDIT. | 12 // GENERATED - DON'T EDIT. |
13 | 13 |
14 import 'dart:core'; | 14 import 'dart:core'; |
15 import 'dart:core' as core; | 15 import 'dart:core' as core; |
16 import 'package:expect/expect.dart'; | 16 import 'package:expect/expect.dart'; |
17 | 17 |
18 @NoInline() | 18 @NoInline() |
19 @AssumeDynamic() | 19 @AssumeDynamic() |
20 confuse(f) => f; | 20 confuse(f) => f; |
21 | 21 |
22 final bool inCheckedMode = (() { | 22 typedef F0<T> = Function Function(int x0, [Function x]); |
23 bool result = false; | 23 typedef F1<T> = core.List<core.int> Function([int x]); |
24 assert(result = true); | 24 typedef F2<T> = List<T> Function([List<T> x]); |
25 return result; | 25 typedef F3<T> = void Function(core.List<core.int> x); |
26 })(); | 26 typedef F4<T> = int Function([int x]) Function(int x); |
27 | 27 typedef F5<T> = int Function(List<Function> x1) Function(int x); |
28 typedef F0<T> | 28 typedef F6<T> = int Function(int x, [List<T> x1]) Function(int x); |
29 = Function Function(int x0, [Function x]); | 29 typedef F7<T> = Function Function(int x1, {Function x}) Function(int x); |
30 typedef F1<T> | 30 typedef F8<T> = Function Function([List<T> x]) Function(int x); |
31 = core.List<core.int> Function([int x]); | 31 typedef F9<T> = List<Function> Function(int y, [Function x]) Function(int x); |
32 typedef F2<T> | 32 typedef F10<T> = List<Function> Function(int x2, [core.List<core.int> x3]) |
33 = List<T> Function([List<T> x]); | 33 Function(int x); |
34 typedef F3<T> | 34 typedef F11<T> = core.List<core.int> Function({int x}) Function(int x); |
35 = void Function(core.List<core.int> x); | 35 typedef F12<T> = core.List<core.int> Function(core.List<core.int> x) Function( |
36 typedef F4<T> | 36 int x); |
37 = int Function([int x]) Function(int x); | 37 typedef F13<T> = List<T> Function(int x1, [int x]) Function(int x); |
38 typedef F5<T> | 38 typedef F14<T> = List<T> Function([List<Function> x1]) Function(int x); |
39 = int Function(List<Function> x1) Function(int x); | 39 typedef F15<T> = List<T> Function({List<T> x}) Function(int x); |
40 typedef F6<T> | 40 typedef F16<T> = Function(int y, {Function x}) Function(int x); |
41 = int Function(int x, [List<T> x1]) Function(int x); | 41 typedef F17<T> = Function(int x1, [List<T> x]) Function(int x); |
42 typedef F7<T> | 42 typedef F18<T> = void Function(Function x1) Function(int x); |
43 = Function Function(int x1, {Function x}) Function(int x); | 43 typedef F19<T> = void Function(int x, [core.List<core.int> x1]) Function(int x); |
44 typedef F8<T> | 44 typedef F20<T> = Function Function<A>(Function x) Function(int x); |
45 = Function Function([List<T> x]) Function(int x); | 45 typedef F21<T> = List<T> Function<A>(List<Function> x) Function(int x); |
46 typedef F9<T> | 46 typedef F22<T> = List<A> Function<A>(core.List<core.int> x) Function(int x); |
47 = List<Function> Function(int y, [Function x]) Function(int x); | |
48 typedef F10<T> | |
49 = List<Function> Function(int x2, [core.List<core.int> x3]) Function(int x); | |
50 typedef F11<T> | |
51 = core.List<core.int> Function({int x}) Function(int x); | |
52 typedef F12<T> | |
53 = core.List<core.int> Function(core.List<core.int> x) Function(int x); | |
54 typedef F13<T> | |
55 = List<T> Function(int x1, [int x]) Function(int x); | |
56 typedef F14<T> | |
57 = List<T> Function([List<Function> x1]) Function(int x); | |
58 typedef F15<T> | |
59 = List<T> Function({List<T> x}) Function(int x); | |
60 typedef F16<T> | |
61 = Function(int y, {Function x}) Function(int x); | |
62 typedef F17<T> | |
63 = Function(int x1, [List<T> x]) Function(int x); | |
64 typedef F18<T> | |
65 = void Function(Function x1) Function(int x); | |
66 typedef F19<T> | |
67 = void Function(int x, [core.List<core.int> x1]) Function(int x); | |
68 typedef F20<T> | |
69 = Function Function<A>(Function x) Function(int x); | |
70 typedef F21<T> | |
71 = List<T> Function<A>(List<Function> x) Function(int x); | |
72 typedef F22<T> | |
73 = List<A> Function<A>(core.List<core.int> x) Function(int x); | |
74 | 47 |
75 Function f0(int x0, [Function x]) => null; | 48 Function f0(int x0, [Function x]) => null; |
76 core.List<core.int> f1([int x]) => null; | 49 core.List<core.int> f1([int x]) => null; |
77 List<int> f2([List<int> x]) => null; | 50 List<int> f2([List<int> x]) => null; |
78 void f3(core.List<core.int> x) => null; | 51 void f3(core.List<core.int> x) => null; |
79 int Function([int x]) f4(int x) => null; | 52 int Function([int x]) f4(int x) => null; |
80 int Function(List<Function> x0) f5(int x) => null; | 53 int Function(List<Function> x0) f5(int x) => null; |
81 int Function(int x, [List<int> x0]) f6(int x) => null; | 54 int Function(int x, [List<int> x0]) f6(int x) => null; |
82 Function Function(int x0, {Function x}) f7(int x) => null; | 55 Function Function(int x0, {Function x}) f7(int x) => null; |
83 Function Function([List<int> x]) f8(int x) => null; | 56 Function Function([List<int> x]) f8(int x) => null; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 x2 = confuse(m2); | 222 x2 = confuse(m2); |
250 l2 = confuse(m2); | 223 l2 = confuse(m2); |
251 if (!tIsBool) { | 224 if (!tIsBool) { |
252 Expect.isTrue(f2 is F2<int>); | 225 Expect.isTrue(f2 is F2<int>); |
253 Expect.isFalse(f2 is F2<bool>); | 226 Expect.isFalse(f2 is F2<bool>); |
254 Expect.isTrue(confuse(f2) is F2<int>); | 227 Expect.isTrue(confuse(f2) is F2<int>); |
255 Expect.isFalse(confuse(f2) is F2<bool>); | 228 Expect.isFalse(confuse(f2) is F2<bool>); |
256 Expect.equals(tIsDynamic, m2 is F2<bool>); | 229 Expect.equals(tIsDynamic, m2 is F2<bool>); |
257 Expect.equals(tIsDynamic, confuse(m2) is F2<bool>); | 230 Expect.equals(tIsDynamic, confuse(m2) is F2<bool>); |
258 } else { | 231 } else { |
259 if (inCheckedMode) { | 232 if (typeAssertionsEnabled) { |
260 Expect.throws(() { | 233 Expect.throws(() { |
261 x2 = (f2 as dynamic); | 234 x2 = (f2 as dynamic); |
262 }); | 235 }); |
263 Expect.throws(() { | 236 Expect.throws(() { |
264 x2 = confuse(f2); | 237 x2 = confuse(f2); |
265 }); | 238 }); |
266 List<T> Function([List<T> x]) l2; | 239 List<T> Function([List<T> x]) l2; |
267 Expect.throws(() { | 240 Expect.throws(() { |
268 l2 = (f2 as dynamic); | 241 l2 = (f2 as dynamic); |
269 }); | 242 }); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 x6 = confuse(m6); | 346 x6 = confuse(m6); |
374 l6 = confuse(m6); | 347 l6 = confuse(m6); |
375 if (!tIsBool) { | 348 if (!tIsBool) { |
376 Expect.isTrue(f6 is F6<int>); | 349 Expect.isTrue(f6 is F6<int>); |
377 Expect.isFalse(f6 is F6<bool>); | 350 Expect.isFalse(f6 is F6<bool>); |
378 Expect.isTrue(confuse(f6) is F6<int>); | 351 Expect.isTrue(confuse(f6) is F6<int>); |
379 Expect.isFalse(confuse(f6) is F6<bool>); | 352 Expect.isFalse(confuse(f6) is F6<bool>); |
380 Expect.equals(tIsDynamic, m6 is F6<bool>); | 353 Expect.equals(tIsDynamic, m6 is F6<bool>); |
381 Expect.equals(tIsDynamic, confuse(m6) is F6<bool>); | 354 Expect.equals(tIsDynamic, confuse(m6) is F6<bool>); |
382 } else { | 355 } else { |
383 if (inCheckedMode) { | 356 if (typeAssertionsEnabled) { |
384 Expect.throws(() { | 357 Expect.throws(() { |
385 x6 = (f6 as dynamic); | 358 x6 = (f6 as dynamic); |
386 }); | 359 }); |
387 Expect.throws(() { | 360 Expect.throws(() { |
388 x6 = confuse(f6); | 361 x6 = confuse(f6); |
389 }); | 362 }); |
390 int Function(int x, [List<T> x1]) Function(int x) l6; | 363 int Function(int x, [List<T> x1]) Function(int x) l6; |
391 Expect.throws(() { | 364 Expect.throws(() { |
392 l6 = (f6 as dynamic); | 365 l6 = (f6 as dynamic); |
393 }); | 366 }); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 x8 = confuse(m8); | 423 x8 = confuse(m8); |
451 l8 = confuse(m8); | 424 l8 = confuse(m8); |
452 if (!tIsBool) { | 425 if (!tIsBool) { |
453 Expect.isTrue(f8 is F8<int>); | 426 Expect.isTrue(f8 is F8<int>); |
454 Expect.isFalse(f8 is F8<bool>); | 427 Expect.isFalse(f8 is F8<bool>); |
455 Expect.isTrue(confuse(f8) is F8<int>); | 428 Expect.isTrue(confuse(f8) is F8<int>); |
456 Expect.isFalse(confuse(f8) is F8<bool>); | 429 Expect.isFalse(confuse(f8) is F8<bool>); |
457 Expect.equals(tIsDynamic, m8 is F8<bool>); | 430 Expect.equals(tIsDynamic, m8 is F8<bool>); |
458 Expect.equals(tIsDynamic, confuse(m8) is F8<bool>); | 431 Expect.equals(tIsDynamic, confuse(m8) is F8<bool>); |
459 } else { | 432 } else { |
460 if (inCheckedMode) { | 433 if (typeAssertionsEnabled) { |
461 Expect.throws(() { | 434 Expect.throws(() { |
462 x8 = (f8 as dynamic); | 435 x8 = (f8 as dynamic); |
463 }); | 436 }); |
464 Expect.throws(() { | 437 Expect.throws(() { |
465 x8 = confuse(f8); | 438 x8 = confuse(f8); |
466 }); | 439 }); |
467 Function Function([List<T> x]) Function(int x) l8; | 440 Function Function([List<T> x]) Function(int x) l8; |
468 Expect.throws(() { | 441 Expect.throws(() { |
469 l8 = (f8 as dynamic); | 442 l8 = (f8 as dynamic); |
470 }); | 443 }); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 // The static function f10 sets `T` to `int`. | 487 // The static function f10 sets `T` to `int`. |
515 if (!tIsBool) { | 488 if (!tIsBool) { |
516 x10 = f10 as dynamic; | 489 x10 = f10 as dynamic; |
517 l10 = f10 as dynamic; | 490 l10 = f10 as dynamic; |
518 x10 = confuse(f10); | 491 x10 = confuse(f10); |
519 l10 = confuse(f10); | 492 l10 = confuse(f10); |
520 } | 493 } |
521 | 494 |
522 Expect.isTrue(m10 is F10); | 495 Expect.isTrue(m10 is F10); |
523 Expect.isTrue(m10 is List<Function> Function(int x2, | 496 Expect.isTrue(m10 is List<Function> Function(int x2, |
524 [core.List<core.int> x3]) Function(int x)); | 497 [core.List<core.int> x3]) |
| 498 Function(int x)); |
525 Expect.isTrue(confuse(m10) is F10); | 499 Expect.isTrue(confuse(m10) is F10); |
526 // In checked mode, verifies the type. | 500 // In checked mode, verifies the type. |
527 x10 = m10; | 501 x10 = m10; |
528 l10 = m10; | 502 l10 = m10; |
529 x10 = confuse(m10); | 503 x10 = confuse(m10); |
530 l10 = confuse(m10); | 504 l10 = confuse(m10); |
531 } | 505 } |
532 | 506 |
533 /// core.List<core.int> Function({int x}) Function(int x) | 507 /// core.List<core.int> Function({int x}) Function(int x) |
534 void testF11() { | 508 void testF11() { |
(...skipping 27 matching lines...) Expand all Loading... |
562 core.List<core.int> Function(core.List<core.int> x) Function(int x) l12; | 536 core.List<core.int> Function(core.List<core.int> x) Function(int x) l12; |
563 // The static function f12 sets `T` to `int`. | 537 // The static function f12 sets `T` to `int`. |
564 if (!tIsBool) { | 538 if (!tIsBool) { |
565 x12 = f12 as dynamic; | 539 x12 = f12 as dynamic; |
566 l12 = f12 as dynamic; | 540 l12 = f12 as dynamic; |
567 x12 = confuse(f12); | 541 x12 = confuse(f12); |
568 l12 = confuse(f12); | 542 l12 = confuse(f12); |
569 } | 543 } |
570 | 544 |
571 Expect.isTrue(m12 is F12); | 545 Expect.isTrue(m12 is F12); |
572 Expect.isTrue(m12 is core.List<core.int> Function( | 546 Expect.isTrue(m12 is core.List<core.int> Function(core.List<core.int> x) |
573 core.List<core.int> x) Function(int x)); | 547 Function(int x)); |
574 Expect.isTrue(confuse(m12) is F12); | 548 Expect.isTrue(confuse(m12) is F12); |
575 // In checked mode, verifies the type. | 549 // In checked mode, verifies the type. |
576 x12 = m12; | 550 x12 = m12; |
577 l12 = m12; | 551 l12 = m12; |
578 x12 = confuse(m12); | 552 x12 = confuse(m12); |
579 l12 = confuse(m12); | 553 l12 = confuse(m12); |
580 } | 554 } |
581 | 555 |
582 /// List<T> Function(int x1, [int x]) Function(int x) | 556 /// List<T> Function(int x1, [int x]) Function(int x) |
583 void testF13() { | 557 void testF13() { |
(...skipping 18 matching lines...) Expand all Loading... |
602 x13 = confuse(m13); | 576 x13 = confuse(m13); |
603 l13 = confuse(m13); | 577 l13 = confuse(m13); |
604 if (!tIsBool) { | 578 if (!tIsBool) { |
605 Expect.isTrue(f13 is F13<int>); | 579 Expect.isTrue(f13 is F13<int>); |
606 Expect.isFalse(f13 is F13<bool>); | 580 Expect.isFalse(f13 is F13<bool>); |
607 Expect.isTrue(confuse(f13) is F13<int>); | 581 Expect.isTrue(confuse(f13) is F13<int>); |
608 Expect.isFalse(confuse(f13) is F13<bool>); | 582 Expect.isFalse(confuse(f13) is F13<bool>); |
609 Expect.equals(tIsDynamic, m13 is F13<bool>); | 583 Expect.equals(tIsDynamic, m13 is F13<bool>); |
610 Expect.equals(tIsDynamic, confuse(m13) is F13<bool>); | 584 Expect.equals(tIsDynamic, confuse(m13) is F13<bool>); |
611 } else { | 585 } else { |
612 if (inCheckedMode) { | 586 if (typeAssertionsEnabled) { |
613 Expect.throws(() { | 587 Expect.throws(() { |
614 x13 = (f13 as dynamic); | 588 x13 = (f13 as dynamic); |
615 }); | 589 }); |
616 Expect.throws(() { | 590 Expect.throws(() { |
617 x13 = confuse(f13); | 591 x13 = confuse(f13); |
618 }); | 592 }); |
619 List<T> Function(int x1, [int x]) Function(int x) l13; | 593 List<T> Function(int x1, [int x]) Function(int x) l13; |
620 Expect.throws(() { | 594 Expect.throws(() { |
621 l13 = (f13 as dynamic); | 595 l13 = (f13 as dynamic); |
622 }); | 596 }); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 x14 = confuse(m14); | 628 x14 = confuse(m14); |
655 l14 = confuse(m14); | 629 l14 = confuse(m14); |
656 if (!tIsBool) { | 630 if (!tIsBool) { |
657 Expect.isTrue(f14 is F14<int>); | 631 Expect.isTrue(f14 is F14<int>); |
658 Expect.isFalse(f14 is F14<bool>); | 632 Expect.isFalse(f14 is F14<bool>); |
659 Expect.isTrue(confuse(f14) is F14<int>); | 633 Expect.isTrue(confuse(f14) is F14<int>); |
660 Expect.isFalse(confuse(f14) is F14<bool>); | 634 Expect.isFalse(confuse(f14) is F14<bool>); |
661 Expect.equals(tIsDynamic, m14 is F14<bool>); | 635 Expect.equals(tIsDynamic, m14 is F14<bool>); |
662 Expect.equals(tIsDynamic, confuse(m14) is F14<bool>); | 636 Expect.equals(tIsDynamic, confuse(m14) is F14<bool>); |
663 } else { | 637 } else { |
664 if (inCheckedMode) { | 638 if (typeAssertionsEnabled) { |
665 Expect.throws(() { | 639 Expect.throws(() { |
666 x14 = (f14 as dynamic); | 640 x14 = (f14 as dynamic); |
667 }); | 641 }); |
668 Expect.throws(() { | 642 Expect.throws(() { |
669 x14 = confuse(f14); | 643 x14 = confuse(f14); |
670 }); | 644 }); |
671 List<T> Function([List<Function> x1]) Function(int x) l14; | 645 List<T> Function([List<Function> x1]) Function(int x) l14; |
672 Expect.throws(() { | 646 Expect.throws(() { |
673 l14 = (f14 as dynamic); | 647 l14 = (f14 as dynamic); |
674 }); | 648 }); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 x15 = confuse(m15); | 680 x15 = confuse(m15); |
707 l15 = confuse(m15); | 681 l15 = confuse(m15); |
708 if (!tIsBool) { | 682 if (!tIsBool) { |
709 Expect.isTrue(f15 is F15<int>); | 683 Expect.isTrue(f15 is F15<int>); |
710 Expect.isFalse(f15 is F15<bool>); | 684 Expect.isFalse(f15 is F15<bool>); |
711 Expect.isTrue(confuse(f15) is F15<int>); | 685 Expect.isTrue(confuse(f15) is F15<int>); |
712 Expect.isFalse(confuse(f15) is F15<bool>); | 686 Expect.isFalse(confuse(f15) is F15<bool>); |
713 Expect.equals(tIsDynamic, m15 is F15<bool>); | 687 Expect.equals(tIsDynamic, m15 is F15<bool>); |
714 Expect.equals(tIsDynamic, confuse(m15) is F15<bool>); | 688 Expect.equals(tIsDynamic, confuse(m15) is F15<bool>); |
715 } else { | 689 } else { |
716 if (inCheckedMode) { | 690 if (typeAssertionsEnabled) { |
717 Expect.throws(() { | 691 Expect.throws(() { |
718 x15 = (f15 as dynamic); | 692 x15 = (f15 as dynamic); |
719 }); | 693 }); |
720 Expect.throws(() { | 694 Expect.throws(() { |
721 x15 = confuse(f15); | 695 x15 = confuse(f15); |
722 }); | 696 }); |
723 List<T> Function({List<T> x}) Function(int x) l15; | 697 List<T> Function({List<T> x}) Function(int x) l15; |
724 Expect.throws(() { | 698 Expect.throws(() { |
725 l15 = (f15 as dynamic); | 699 l15 = (f15 as dynamic); |
726 }); | 700 }); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 x17 = confuse(m17); | 756 x17 = confuse(m17); |
783 l17 = confuse(m17); | 757 l17 = confuse(m17); |
784 if (!tIsBool) { | 758 if (!tIsBool) { |
785 Expect.isTrue(f17 is F17<int>); | 759 Expect.isTrue(f17 is F17<int>); |
786 Expect.isFalse(f17 is F17<bool>); | 760 Expect.isFalse(f17 is F17<bool>); |
787 Expect.isTrue(confuse(f17) is F17<int>); | 761 Expect.isTrue(confuse(f17) is F17<int>); |
788 Expect.isFalse(confuse(f17) is F17<bool>); | 762 Expect.isFalse(confuse(f17) is F17<bool>); |
789 Expect.equals(tIsDynamic, m17 is F17<bool>); | 763 Expect.equals(tIsDynamic, m17 is F17<bool>); |
790 Expect.equals(tIsDynamic, confuse(m17) is F17<bool>); | 764 Expect.equals(tIsDynamic, confuse(m17) is F17<bool>); |
791 } else { | 765 } else { |
792 if (inCheckedMode) { | 766 if (typeAssertionsEnabled) { |
793 Expect.throws(() { | 767 Expect.throws(() { |
794 x17 = (f17 as dynamic); | 768 x17 = (f17 as dynamic); |
795 }); | 769 }); |
796 Expect.throws(() { | 770 Expect.throws(() { |
797 x17 = confuse(f17); | 771 x17 = confuse(f17); |
798 }); | 772 }); |
799 Function(int x1, [List<T> x]) Function(int x) l17; | 773 Function(int x1, [List<T> x]) Function(int x) l17; |
800 Expect.throws(() { | 774 Expect.throws(() { |
801 l17 = (f17 as dynamic); | 775 l17 = (f17 as dynamic); |
802 }); | 776 }); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 x21 = confuse(m21); | 881 x21 = confuse(m21); |
908 l21 = confuse(m21); | 882 l21 = confuse(m21); |
909 if (!tIsBool) { | 883 if (!tIsBool) { |
910 Expect.isTrue(f21 is F21<int>); | 884 Expect.isTrue(f21 is F21<int>); |
911 Expect.isFalse(f21 is F21<bool>); | 885 Expect.isFalse(f21 is F21<bool>); |
912 Expect.isTrue(confuse(f21) is F21<int>); | 886 Expect.isTrue(confuse(f21) is F21<int>); |
913 Expect.isFalse(confuse(f21) is F21<bool>); | 887 Expect.isFalse(confuse(f21) is F21<bool>); |
914 Expect.equals(tIsDynamic, m21 is F21<bool>); | 888 Expect.equals(tIsDynamic, m21 is F21<bool>); |
915 Expect.equals(tIsDynamic, confuse(m21) is F21<bool>); | 889 Expect.equals(tIsDynamic, confuse(m21) is F21<bool>); |
916 } else { | 890 } else { |
917 if (inCheckedMode) { | 891 if (typeAssertionsEnabled) { |
918 Expect.throws(() { | 892 Expect.throws(() { |
919 x21 = (f21 as dynamic); | 893 x21 = (f21 as dynamic); |
920 }); | 894 }); |
921 Expect.throws(() { | 895 Expect.throws(() { |
922 x21 = confuse(f21); | 896 x21 = confuse(f21); |
923 }); | 897 }); |
924 List<T> Function<A>(List<Function> x) Function(int x) l21; | 898 List<T> Function<A>(List<Function> x) Function(int x) l21; |
925 Expect.throws(() { | 899 Expect.throws(() { |
926 l21 = (f21 as dynamic); | 900 l21 = (f21 as dynamic); |
927 }); | 901 }); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 x22 = confuse(m22); | 934 x22 = confuse(m22); |
961 l22 = confuse(m22); | 935 l22 = confuse(m22); |
962 } | 936 } |
963 } | 937 } |
964 | 938 |
965 void main() { | 939 void main() { |
966 new U69().runTests(); | 940 new U69().runTests(); |
967 new U69<int>(tIsInt: true).runTests(); | 941 new U69<int>(tIsInt: true).runTests(); |
968 new U69<bool>(tIsBool: true).runTests(); | 942 new U69<bool>(tIsBool: true).runTests(); |
969 } | 943 } |
OLD | NEW |