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 type test optimisation for open records is not right yet. For example, this fails (TypeEquals_Valid_28):
type Point is {int y, int x, ...}
type Point3D is {int z, int y, int x}
type Points is Point | Point3D
public method isPoint3D(Points t) -> bool:
if t is Point3D:
return true
else:
return false
Here, the type test is translated as follows:
function is$Q6Pointsr3I1zI1yI1x(v) {
return Object.keys(v).length === 3;
}
This clearly doesn't make sense as there could be things in Points which have fields.
Activity