blob: c3641d72050c3c9241b3b09e5617cac1eb0d1d3c [file] [log] [blame]
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* @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 a run time error if script does not declare a
* top level function main()
* @runtime-error
* @author vasya
* @issue 42487
*/
library Script_without_main;
class C {}
void f() {}
final constX = 1;