OLD | NEW |
---|---|
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
1 class HelloClass { | 5 class HelloClass { |
2 void printHello() { | 6 void printHello() { |
3 () { | 7 () { |
4 print('Hello World!'); | 8 print('Hello World!'); |
5 }(); | 9 }(); |
6 } | 10 } |
7 } | 11 } |
8 | 12 |
9 void main() { | 13 void main() { |
10 () { | 14 () { |
11 HelloClass helloClass = new HelloClass(); | 15 HelloClass helloClass = new HelloClass(); |
12 helloClass.printHello(); | 16 helloClass.printHello(); |
13 }(); | 17 }(); |
14 } | 18 } |
OLD | NEW |