blob: 6d4e6d8ed8b277d86a47b131369801b14a49512e [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 The expression () refers to the constant empty record with no
/// fields.
///
/// @description Checks that the expression () refers to the constant empty
/// record with no positional fields.
/// @author sgrekhov22@gmail.com
() foo() => ();
main() {
var record1 = ();
record1.$1;
// ^^
// [analyzer] unspecified
// [cfe] unspecified
foo().$1;
// ^^
// [analyzer] unspecified
// [cfe] unspecified
}