OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 class A { | 5 class A { |
6 String toString() => "A"; | 6 String toString() => "A"; |
7 } | 7 } |
8 | 8 |
9 class B { | 9 class B { |
10 String toString() => "B"; | 10 String toString() => "B"; |
11 } | 11 } |
12 | 12 |
13 foo() => new A(); | 13 foo() => new A(); |
14 bar() => new B(); | 14 bar() => new B(); |
15 baz(s) => s.length; | 15 baz(s) => s.length; |
16 | 16 |
17 main() { | 17 main() { |
18 baz('${foo()} and ${bar()}'); | 18 baz('${foo()} and ${bar()}'); |
19 } | 19 } |
OLD | NEW |