Files
scriptc/tests/corpus/generic-class-js-functions/functions.js
Chris Tate 306251e3df feat(compiler): preserve native type refinements for self-hosting
- Preserve class identity and member storage through interface and intersection refinements.
- Replace TypeScript runtime enum imports with pinned native constants and name lookups.
- Use concrete type predicates in the native semantic client.
2026-09-28 08:12:06 -05:00

10 lines
286 B
JavaScript

/** @param {number} [first] @param {number} [second] */
export function inspect(first, second) {
console.log(first, second);
}
/** @param {number} [first] @param {number} [second] */
export const choose = function (first, second) {
return second === undefined ? first : second;
};