You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new TypeScript cells added in 1.4.0 don’t handle expressions correctly; the TypeScript transpiler interprets all input as a program, and hence promotes an expression to an expression statement. This in turn means that implicit display is disabled. So this:
1+2
Becomes this:
1+2;
A more severe case is that expressions can be misinterpreted. This:
{x: "foo"}
Is incorrectly converted into a block statement containing a label statement:
{
x: "foo";}
Whereas the intended interpretation is an object literal expression: