/* | |
* 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 Strings support escape sequences for special characters. The | |
* escapes are: | |
* . . . | |
* • \u{HEX_DIGIT_SEQUENCE} is the unicode scalar value represented by the | |
* HEX_DIGIT_SEQUENCE. It is a compile-time error when the value of the | |
* HEX_DIGIT_SEQUENCE is not a valid unicode scalar value. | |
* HEX_DIGIT_SEQUENCE: | |
* HEX_DIGIT HEX_DIGIT? HEX_DIGIT? HEX_DIGIT? HEX_DIGIT? HEX_DIGIT? | |
* ; | |
* @description Checks that it is a compile-time error when the value | |
* of the HEX_DIGIT_SEQUENCE contains other symbols than HEX_DIGIT. | |
* @compile-error | |
* @author msyabro | |
* @reviewer rodionov | |
*/ | |
main() { | |
try { | |
'\u{ffg}'; | |
} catch (e) {} | |
} |