Add test case
The test passes in 1.8 and fails in master.
This commit is contained in:
parent
6b8109a501
commit
9fac99e692
1 changed files with 12 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
|||
// @noImplicitAny: true
|
||||
function getNumber(): number {
|
||||
return 1;
|
||||
}
|
||||
class Example {
|
||||
getNumber(): number {
|
||||
return 1;
|
||||
}
|
||||
doSomething(a = this.getNumber()): typeof a {
|
||||
return a;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue