mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
23 lines
444 B
TypeScript
23 lines
444 B
TypeScript
// @noEmit: true
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @Filename: mod1.js
|
|
/** @callback Con - some kind of continuation
|
|
* @param {object | undefined} error
|
|
* @return {any} I don't even know what this should return
|
|
*/
|
|
module.exports = C
|
|
function C() {
|
|
this.p = 1
|
|
}
|
|
|
|
// @Filename: use.js
|
|
/** @param {import('./mod1').Con} k */
|
|
function f(k) {
|
|
if (1 === 2 - 1) {
|
|
// I guess basic math works!
|
|
}
|
|
return k({ ok: true})
|
|
}
|
|
|