TypeScript/tests/cases/compiler/getterThatThrowsShouldNotNeedReturn.ts
2014-07-12 17:30:19 -07:00

9 lines
165 B
TypeScript

class Greeter {
public get greet(): string {
throw ''; // should not raise an error
}
public greeting(): string {
throw ''; // should not raise an error
}
}