Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 class Foo { | |
| 6 int takesAnInt(int val) { | |
| 7 return val + 1; | |
| 8 } | |
| 9 } | |
| 10 | |
| 11 takesAnInt(int val) { | |
| 12 return val + 1; | |
| 13 } | |
| 14 | |
| 15 main() { | |
| 16 Expect.equals("foo1", new Foo().takesAnInt("foo")); | |
| 17 Expect.equals("foo1", takesAnInt("foo")); | |
| 18 } | |
| OLD | NEW |