JS: Also propagate through promise types

This commit is contained in:
Asger F
2025-04-30 14:15:07 +02:00
parent 500291dd54
commit 167f752301
3 changed files with 26 additions and 1 deletions

View File

@@ -14,3 +14,14 @@ function t1(c: NS.C, d: NS.D) {
/** calls:NS.C.m */
d.m();
}
async function t2(cp: Promise<NS.C>) {
const c = await cp;
/** calls:NS.C.m */
c.m();
cp.then(c2 => {
/** calls:NS.C.m */
c2.m();
})
}