Add test case

The test passes in 1.8 and fails in master.
This commit is contained in:
Nathan Shively-Sanders 2016-06-08 14:23:42 -07:00
parent 6b8109a501
commit 9fac99e692

View file

@ -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;
}
}