blob: 701ac3e324da34fa25edd59868dde69aba8c9a18 [file] [log] [blame]
// Copyright (c) 2019, 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
/// Unicode escapes must refer to valid Unicode points and not surrogate
/// characters.
main() {
var str = "Foo\u{FFFFFF}";
// ^^^^^^^^^
// [analyzer] SYNTACTIC_ERROR.INVALID_CODE_POINT
// [cfe] The escape sequence starting with '\u' isn't a valid code point.
str = "Foo\uD800";
str = "Foo\uDC00";
}