Files
sdk/tests/language/main/not_a_function_test.dart
Johnni Winther 74daf1b361 [cfe] Support injected members in export scope
Public members added to augmentation libraries where not included
in the export scope of the origin library, making them unavailable
for libraries the import the original library.

Change-Id: I74c7da5e0be98ff15b6ddbf55aa3812c04ded356
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/304884
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2023-05-24 09:21:20 +00:00

12 lines
406 B
Dart

// Copyright (c) 2014, 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.
main() {}
var main;
// ^^^^
// [analyzer] COMPILE_TIME_ERROR.DUPLICATE_DEFINITION
// [analyzer] COMPILE_TIME_ERROR.MAIN_IS_NOT_FUNCTION
// [cfe] 'main' is already declared in this scope.