blob: c10425d429de9c6c7be90e4a6fc66bb6120a1954 [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 An import specifies a library to be used in the scope of another library.
* libraryImport:
* metadata import uri (as identifier)? combinator* `;'
* ;
* combinator:
* show identifierList |
* hide identifierList
* ;
* identifierList:
* identifier (, identifier)*
* ;
* @description Checks that it is a compile-time error when an import directive
* is followed immediately by a semicolon;
* @compile-error
* @author msyabro
* @reviewer rodionov
*/
import;
main() {
try {
var someVar = 0;
} catch(e) {}
}