// @noEmit: true// @allowJs: true// @checkJs: true// @Filename: a.js// from clear-requirevarclear=moduleId=>2clear.all=()=>1
Expected behavior:
all is a property on clear, and has the type () => number.
Actual behavior:
Error: 'all' is not a property on 'clear'.
Maybe any top-level declaration with a non-primitive initialiser should create a container in Javascript, although that would be hard to verify in the binder.
Expected behavior:
allis a property onclear, and has the type() => number.Actual behavior:
Error: 'all' is not a property on 'clear'.
Maybe any top-level declaration with a non-primitive initialiser should create a container in Javascript, although that would be hard to verify in the binder.