//@strictNullChecks: true
//@target: ES5
class A {
a(): string | null {
if (Math.random() > 0.5) {
return '';
}
// it does error here as expected
class B {
get a(): string | null {
// it should error here because it returns undefined
class C {
get a() {
return 0;
set a(value: number) {