TypeScript/tests/baselines/reference/functionOnlyHasThrow.types
2014-08-15 14:37:48 -07:00

9 lines
280 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 : { (message?: string): Error; new (message?: string): Error; prototype: Error; }
}