microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
test/debugger/assets/hello.ts
13lines · modeblame
9f75364dArtem Egorov8 years ago | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT license. See LICENSE file in the project root for details. | |
| 3 | class Hello { | |
| 4 | constructor (public msg: string) { | |
| 5 | } | |
| 6 | public sayHello() { | |
| 7 | return this.msg; | |
| 8 | } | |
| 9 | } | |
| 10 | | |
| 11 | const hello = new Hello("HelloWorld!"); | |
| 12 | | |
| 13 | console.log(hello.sayHello()); |