blob: a2661e20b7589b6e6a071fe9db299ee47e06a309 [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 The cast expression ensures that an object is a member of a type.
* typeCast:
* asOperator type
* ;
* asOperator:
* as
* ;
* @description Checks that it is a compile-time error when the type cast operator
* is missing the first argument.
* @compile-error
* @author rodionov
* @reviewer iefremov
*/
main() {
try {
var x = (as int);
} catch(x) {}
}