blob: d9cef9fa4a09ecf8fcd34b0294895f734b3942bf [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;