| /* |
| * 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 import a top level function main(). |
| * @description Checks that it is a run time error if script does not declare a top level |
| * function main() |
| * @runtime-error |
| * @author vasya |
| * @reviewer msyabro |
| */ |
| |
| library Script_without_main; |
| |
| class C {} |
| |
| void f() {} |
| |
| final constX = 1; |