Type Inference does not work compared with vscode
for the same line of code

in cornelis , the inference looks like this :

however , it should behave like this in vscode:

Or maybe,there is something wrong with my usage or configuration , thanks for answering me! :)