blob: d18e1376b80afa07ad152ce4d54e0fdbd869a17d [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 is-expression tests if an object is a member of a type.
* typeTest:
* isOperator type
* ;
* isOperator:
* is '!'?
* ;
* @description Checks that it is a compile-time error when using a value
* literal in the right part of the expression.
* @compile-error
* @author msyabro
* @reviewer kaigorodov
*/
main () {
try {
1 is 1;
} catch (e) {}
}