dart-sdk/pkg/front_end/testcases/records/restricted_object_member_names.dart.weak.outline.expect
Johnni Winther 36641368bb [cfe] Treat NonNullableByDefault as default in ast-to-text
This changes ast-to-text to mark legacy libraries instead of
non-nullable-by-default libraries.

TEST=existing

Change-Id: Ib01147e4ef48c2c5b2ffc6b23547998344dfdf2e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/307121
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2023-06-08 06:28:50 +00:00

65 lines
2.3 KiB
Plaintext

library;
//
// Problems in library:
//
// pkg/front_end/testcases/records/restricted_object_member_names.dart:5:6: Error: Record field names can't be the same as a member from 'Object'.
// (int hashCode,) foo1() => throw 0; // Error.
// ^^^^^^^^
//
// pkg/front_end/testcases/records/restricted_object_member_names.dart:6:6: Error: Record field names can't be the same as a member from 'Object'.
// (int runtimeType,) foo2() => throw 0; // Error.
// ^^^^^^^^^^^
//
// pkg/front_end/testcases/records/restricted_object_member_names.dart:7:6: Error: Record field names can't be the same as a member from 'Object'.
// (int noSuchMethod,) foo3() => throw 0; // Error.
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/records/restricted_object_member_names.dart:8:6: Error: Record field names can't be the same as a member from 'Object'.
// (int toString,) foo4() => throw 0; // Error.
// ^^^^^^^^
//
// pkg/front_end/testcases/records/restricted_object_member_names.dart:9:7: Error: Record field names can't be the same as a member from 'Object'.
// ({int hashCode}) foo5() => throw 0; // Error.
// ^^^^^^^^
//
// pkg/front_end/testcases/records/restricted_object_member_names.dart:10:7: Error: Record field names can't be the same as a member from 'Object'.
// ({int runtimeType}) foo6() => throw 0; // Error.
// ^^^^^^^^^^^
//
// pkg/front_end/testcases/records/restricted_object_member_names.dart:11:7: Error: Record field names can't be the same as a member from 'Object'.
// ({int noSuchMethod}) foo7() => throw 0; // Error.
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/records/restricted_object_member_names.dart:12:7: Error: Record field names can't be the same as a member from 'Object'.
// ({int toString}) foo8() => throw 0; // Error.
// ^^^^^^^^
//
import self as self;
static method foo1() → invalid-type
;
static method foo2() → invalid-type
;
static method foo3() → invalid-type
;
static method foo4() → invalid-type
;
static method foo5() → invalid-type
;
static method foo6() → invalid-type
;
static method foo7() → invalid-type
;
static method foo8() → invalid-type
;
static method foo9() → dynamic
;
static method foo10() → dynamic
;
static method foo11() → dynamic
;
static method foo12() → dynamic
;
static method main() → dynamic
;