mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +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})
|
|
}
|
|
|