dbaf041ae4
Change-Id: Ia3238c1781422ec5eb7a219a5cf8af645a4c5876 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/409000 Commit-Queue: Bob Nystrom <rnystrom@google.com> Reviewed-by: Lasse Nielsen <lrn@google.com> Auto-Submit: Bob Nystrom <rnystrom@google.com>
36 lines
1.2 KiB
Dart
36 lines
1.2 KiB
Dart
// Copyright (c) 2015, 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.
|
|
|
|
import 'package:expect/expect.dart';
|
|
|
|
import 'access_lib.dart';
|
|
import 'access_lib.dart' as private;
|
|
|
|
main() {
|
|
_function();
|
|
// [error column 3, length 9]
|
|
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_FUNCTION
|
|
// [cfe] Method not found: '_function'.
|
|
private._function();
|
|
// ^^^^^^^^^
|
|
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_FUNCTION
|
|
// [cfe] Method not found: '_function'.
|
|
new _Class();
|
|
// ^^^^^^
|
|
// [analyzer] COMPILE_TIME_ERROR.CREATION_WITH_NON_TYPE
|
|
// [cfe] Couldn't find constructor '_Class'.
|
|
private._Class();
|
|
// ^^^^^^
|
|
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_FUNCTION
|
|
// [cfe] Method not found: '_Class'.
|
|
new Class._constructor();
|
|
// ^^^^^^^^^^^^
|
|
// [analyzer] COMPILE_TIME_ERROR.NEW_WITH_UNDEFINED_CONSTRUCTOR
|
|
// [cfe] Couldn't find constructor 'Class._constructor'.
|
|
new private.Class._constructor();
|
|
// ^^^^^^^^^^^^
|
|
// [analyzer] COMPILE_TIME_ERROR.NEW_WITH_UNDEFINED_CONSTRUCTOR
|
|
// [cfe] Couldn't find constructor 'Class._constructor'.
|
|
}
|