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 spec says It is a compile-time error unless D is a function declaration. Nothing about a getter.
/** * @assertion It is a run time error if S does not declare or export either: * • A top-level function named main, or * • A top-level getter named main that returns a function. * @description Checks that it is not a runtime error if S declares a top-level * getter named main, returning function. * @author [email protected] * @issue 42492 */import"../../../Utils/expect.dart";
var x =1;
get main => () { Expect.equals(1, x); };