blob: 90b57cac9601b370afa9c30c9e5447c56bb25c14 [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.
// @dart = 2.9
/// @assertion It is a compile-time error when a non-raw string literal contains
/// a character sequence of the form \u that is not followed by either a
/// sequence of four hexadecimal digits, or by curly brace delimited sequence of
/// hexadecimal digits.
/// @description Checks that it is a compile-time error when a string literal
/// contains a character sequence of the form \u that is followed by a character
/// that isn't a hexadecimal digit.
/// @author msyabro
/// @reviewer rodionov
main() {
try {
'some text\umore text';
// ^
// [analyzer] unspecified
// [cfe] unspecified
} catch (e) {}
}