Expected Behavior
$ npx ts-node
> let a = 3
undefined
> 3 + 4
7
> .type a
let a: number
> 3 + 4
7
Actual Behavior
$ npx ts-node
> let a = 3
undefined
> 3 + 4
7
> .type a
let a: number
> 3 + 4
3
Steps to reproduce the problem
- start the REPL
- define a symbol
.type the symbol
- do a simple operation like
3 + 4
Minimal reproduction
TypeStrong/ts-node-repros#5
Specifications
- ts-node version: v9.0.0
- node version: v12.18.3
- TypeScript version: v4.0.3
- tsconfig.json, if you're using one:
- Operating system and version: Windows 10 v1607
- If Windows, are you using WSL or WSL2?: neither