9 lines
248 B
Text
9 lines
248 B
Text
=== 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
|
|
}
|