Skip to content

[Class modifiers] No error in CFE when class from a pre-feature library mixes in base mixin #52259

Closed
@sgrekhov

Description

@sgrekhov

Test co19/LanguageFeatures/Class-modifiers/versioning_A02_t04 fails on CFE when class from a pre-feature library mixes in base mixin from a post-feature. All expected errors below are missed in CFE (but reported analyzer)

// class_modifiers_lib.dart
// @dart=3.0
base mixin class BaseMixinClass {}
abstract base mixin class AbstractBaseMixinClass {}
base mixin BaseMixin {}

// versioning_A02_t04.dart
// @dart=2.19

import "class_modifiers_lib.dart";

class WithBaseMixinClass with BaseMixinClass {}
//    ^^^^^^^^^^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

class WithAbstractBaseMixinClass with AbstractBaseMixinClass {}
//    ^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

class WithBaseMixin with BaseMixin {}
//    ^^^^^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

abstract class AbstractWithBaseMixinClass with BaseMixinClass {}
//             ^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

abstract class AbstractWithAbstractBaseMixinClass with AbstractBaseMixinClass {}
//             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

abstract class AbstractWithBaseMixin with BaseMixin {}
//             ^^^^^^^^^^^^^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified

Activity

kallentu

kallentu commented on May 10, 2023

@kallentu
Member

@sgrekhov This should also be fixed now with the fix from #52316

sgrekhov

sgrekhov commented on May 11, 2023

@sgrekhov
ContributorAuthor

Confirmed. Fixed. Thanx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @sgrekhov@kallentu

      Issue actions

        [Class modifiers] No error in CFE when class from a pre-feature library mixes in `base mixin` · Issue #52259 · dart-lang/sdk