Result

WA

Duration

4191ms

Code [DL]

type R<S>=Z extend `${infer _}tok{infer Z}$?`T${R<Z>}`:``
export default M

stdin

totokyokyokyokyokyokyokyotototototokyotototokyokyo

stdout

stderr

Error: type error: any
    at visit (/root/compile-time-typescript/src/index.ts:43:15)
    at visitNode (/root/compile-time-typescript/node_modules/typescript/lib/typescript.js:27849:24)
    at Object.forEachChild (/root/compile-time-typescript/node_modules/typescript/lib/typescript.js:28181:21)
    at NodeObject.forEachChild (/root/compile-time-typescript/node_modules/typescript/lib/typescript.js:146140:23)
    at visit (/root/compile-time-typescript/src/index.ts:46:10)
    at visitNodes (/root/compile-time-typescript/node_modules/typescript/lib/typescript.js:27858:30)
    at Object.forEachChild (/root/compile-time-typescript/node_modules/typescript/lib/typescript.js:28097:24)
    at SourceFileObject.NodeObject.forEachChild (/root/compile-time-typescript/node_modules/typescript/lib/typescript.js:146140:23)
    at /root/compile-time-typescript/src/index.ts:49:10
    at step (/root/compile-time-typescript/src/index.ts:52:23)

strace