TypeScript/tests/baselines/reference/functionOnlyHasThrow.types
2015-04-15 16:44:20 -07:00

10 lines
248 B
Plaintext

=== tests/cases/compiler/functionOnlyHasThrow.ts ===
function clone():number {
>clone : () => number
throw new Error("To be implemented");
>new Error("To be implemented") : Error
>Error : ErrorConstructor
>"To be implemented" : string
}