Skip to content

Commit dd0a380

Browse files
Added a tests for super property accesses within super calls of derived classes.
1 parent 0de57d9 commit dd0a380

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class A {
2+
constructor(f: () => string) {
3+
}
4+
public blah(): string { return ""; }
5+
}
6+
7+
class B extends A {
8+
constructor() {
9+
super(() => { return super.blah(); })
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class A {
2+
constructor(f: string) {
3+
}
4+
public blah(): string { return ""; }
5+
}
6+
7+
class B extends A {
8+
constructor() {
9+
super(super.blah())
10+
}
11+
}

0 commit comments

Comments
 (0)