mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Fixed a redundant used before defined error (#55283)
This commit is contained in:
committed by
GitHub
parent
769f2daf71
commit
f07077c7ff
@@ -0,0 +1,23 @@
|
||||
// @noEmit: true
|
||||
|
||||
// https://github.com/microsoft/TypeScript/issues/8775
|
||||
|
||||
interface IThing<T> {
|
||||
owner: T;
|
||||
}
|
||||
|
||||
var foo = {
|
||||
one: {} as IThing<typeof foo>,
|
||||
}
|
||||
|
||||
let baz = {
|
||||
two: {} as IThing<typeof bar>,
|
||||
}
|
||||
|
||||
let bar = {
|
||||
three: {} as IThing<typeof bar>,
|
||||
}
|
||||
|
||||
const qwe = {
|
||||
four: {} as IThing<typeof qwe>,
|
||||
}
|
||||
Reference in New Issue
Block a user