| OLD | NEW |
| 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 |
| 1 abstract class Base {} | 5 abstract class Base {} |
| 2 | 6 |
| 3 class Foo extends Base {} | 7 class Foo extends Base {} |
| 4 | 8 |
| 5 class Bar extends Base {} | 9 class Bar extends Base {} |
| 6 | 10 |
| 7 class Baz extends Base {} | 11 class Baz extends Base {} |
| 8 | 12 |
| 9 void foo(x) {} | 13 void foo(x) {} |
| 10 | 14 |
| 11 void bar(x) {} | 15 void bar(x) {} |
| 12 | 16 |
| 13 void foo_escaped(x) {} | 17 void foo_escaped(x) {} |
| 14 | 18 |
| 15 void bar_escaped(x) {} | 19 void bar_escaped(x) {} |
| 16 | 20 |
| 17 void escape(fn) { | 21 void escape(fn) { |
| 18 fn(new Baz()); | 22 fn(new Baz()); |
| 19 } | 23 } |
| 20 | 24 |
| 21 main() { | 25 main() { |
| 22 foo(new Foo()); | 26 foo(new Foo()); |
| 23 bar(new Bar()); | 27 bar(new Bar()); |
| 24 escape(foo_escaped); | 28 escape(foo_escaped); |
| 25 escape(bar_escaped); | 29 escape(bar_escaped); |
| 26 } | 30 } |
| OLD | NEW |