74daf1b361
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>
12 lines
406 B
Dart
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.
|