blob: 033a6e3d558fcd840d9d90daf96ff1bde5c4d771 [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 A single line comment begins with the token //.
* Everything between // and the end of line must be ignored by the Dart compiler,
* unless the comment is a documentation comment.
* SINGLE LINE COMMENT:
* '//' ~(NEWLINE)* (NEWLINE)?
* ;
* @description Checks that everything between // and the end of line is ignored
* by the Dart compiler.
* @author vasya
* @reviewer rodionov
*/
import "../../../Utils/expect.dart";
main() {
// Expect.fail("epic!");
var foo = 1;
// foo = 0;
Expect.equals(1, foo);
try {
// throw foo;
} catch(e) {
Expect.fail("unexpected exception");
}
}