| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 class Foo { | 5 class Foo { |
| 6 int takesAnInt(int val) { | 6 int takesAnInt(int val) { |
| 7 return val + 1; | 7 return val + 1; |
| 8 } | 8 } |
| 9 } | 9 } |
| 10 | 10 |
| 11 takesAnInt(int val) { | 11 takesAnInt(int val) { |
| 12 return val + 1; | 12 return val + 1; |
| 13 } | 13 } |
| 14 | 14 |
| 15 main() { | 15 main() { |
| 16 Expect.equals("foo1", new Foo().takesAnInt("foo")); | 16 Expect.equals("foo1", new Foo().takesAnInt("foo")); |
| 17 Expect.equals("foo1", takesAnInt("foo")); | 17 Expect.equals("foo1", takesAnInt("foo")); |
| 18 } | 18 } |
| OLD | NEW |