OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 HelloClass { | 5 class HelloClass { |
6 void printHello() { | 6 void printHello() { |
7 () { | 7 () { |
8 print('Hello World!'); | 8 print('Hello World!'); |
9 }(); | 9 }(); |
10 } | 10 } |
11 } | 11 } |
12 | 12 |
13 void main() { | 13 void main() { |
14 () { | 14 () { |
15 HelloClass helloClass = new HelloClass(); | 15 HelloClass helloClass = new HelloClass(); |
16 helloClass.printHello(); | 16 helloClass.printHello(); |
17 }(); | 17 }(); |
18 } | 18 } |
OLD | NEW |