js-slang icon indicating copy to clipboard operation
js-slang copied to clipboard

Function types in Source Typed

Open martin-henz opened this issue 10 months ago • 0 comments

Should declarations inherit the type of their right-hand side?

Example:

let a: number = 1;

let b = a;

b = "a string";

does not give a type error in Source Typed.

martin-henz avatar Apr 18 '24 03:04 martin-henz