blob: f96bc7d5efe88f42e933f8960b4ae49e8a94cb4e [file] [log] [blame]
// Copyright (c) 2022, 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 A built-in class [Record] with no members except those inherited
/// from [Object]. All record types are a subtype of this class. This type
/// cannot be constructed, extended, mixed in, or implemented by user-defined
/// classes.
///
/// @description Checks that it is a compile error to mix-in [Record] class
/// @author sgrekhov22@gmail.com
class R1 = Object with Record;
// ^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
class R2 = Object with (int, {String s});
// ^^^^^^^^^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
class R3 = Object with ();
// ^^
// [analyzer] unspecified
// [cfe] unspecified
main() {
R1();
R2();
R3();
}