Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 99743df

Browse filesBrowse files
committed
Add basic test case
1 parent 94aeff2 commit 99743df
Copy full SHA for 99743df

1 file changed

+21Lines changed: 21 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/cases/compiler/recursion.ts‎

Copy file name to clipboard
+21Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
let o = {
2+
p: 12,
3+
m(this: typeof o) {
4+
return this.p;
5+
}
6+
}
7+
let o2 = {
8+
p: 12,
9+
m() {
10+
let x: typeof o2;
11+
let y = this.p // nope, any
12+
return x.p // ok???
13+
}
14+
m2() {
15+
return this.m() // still any!
16+
}
17+
}
18+
19+
let x = o2.m()
20+
let y = o2.m2()
21+
let p = o2.p

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.