13ce8baf76
A lot of unspecified errors got filled in this time. Change-Id: I88e728499da1b591ee1f6de1749f35182a6c9996 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/408887 Auto-Submit: Bob Nystrom <rnystrom@google.com> Commit-Queue: Bob Nystrom <rnystrom@google.com> Reviewed-by: Lasse Nielsen <lrn@google.com>
42 lines
1.9 KiB
Dart
42 lines
1.9 KiB
Dart
// 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.
|
|
|
|
// TODO(https://github.com/dart-lang/sdk/issues/51557): Decide if the mixins
|
|
// being applied in this test should be "mixin", "mixin class" or the test
|
|
// should be left at 2.19.
|
|
// @dart=2.19
|
|
|
|
class BadExtends extends Null {}
|
|
// ^
|
|
// [cfe] 'Null' is restricted and can't be extended or implemented.
|
|
// [cfe] Subtypes of deeply immutable classes must be deeply immutable.
|
|
// [cfe] The superclass, 'Null', has no unnamed constructor that takes no arguments.
|
|
// ^^^^
|
|
// [analyzer] COMPILE_TIME_ERROR.SUBTYPE_OF_DISALLOWED_TYPE
|
|
// [cfe] 'Null' is restricted and can't be extended or implemented.
|
|
|
|
class BadImplements implements Null {}
|
|
// ^
|
|
// [cfe] 'Null' is restricted and can't be extended or implemented.
|
|
// [cfe] Subtypes of deeply immutable classes must be deeply immutable.
|
|
// ^^^^
|
|
// [analyzer] COMPILE_TIME_ERROR.SUBTYPE_OF_DISALLOWED_TYPE
|
|
// [cfe] 'Null' is restricted and can't be extended or implemented.
|
|
|
|
class BadMixin extends Object with Null {}
|
|
// ^
|
|
// [cfe] 'Null' is restricted and can't be extended or implemented.
|
|
// [cfe] Subtypes of deeply immutable classes must be deeply immutable.
|
|
// ^^^^
|
|
// [analyzer] COMPILE_TIME_ERROR.SUBTYPE_OF_DISALLOWED_TYPE
|
|
// [cfe] 'Null' is restricted and can't be extended or implemented.
|
|
|
|
class BadMixin2 = Object with Null;
|
|
// ^
|
|
// [cfe] 'Null' is restricted and can't be extended or implemented.
|
|
// [cfe] Subtypes of deeply immutable classes must be deeply immutable.
|
|
// ^^^^
|
|
// [analyzer] COMPILE_TIME_ERROR.SUBTYPE_OF_DISALLOWED_TYPE
|
|
// [cfe] 'Null' is restricted and can't be extended or implemented.
|