Skip to content

CFE error with Mixed library and mixins  #42792

@a14n

Description

@a14n

Although I don't see analyzer error I get the following error by running bin/dart b.dart :

packages/flutter/lib/src/b.dart:3:7: Error: 'A<int>' doesn't implement 'A<int>' so it can't be used with 'M<int>'.
 - 'A' is from 'package:flutter/src/a.dart' ('packages/flutter/lib/src/a.dart').
 - 'M' is from 'package:flutter/src/b.dart' ('packages/flutter/lib/src/b.dart').

with the following code:

//--------a.dart
// @dart = 2.8
abstract class A<T> {}

//--------b.dart
import 'a.dart';
mixin M<T> on A<T> {}
class B extends A<int> with M {}
void main(){}

Dart SDK version: 2.9.0-21.0.dev.flutter-84e5eeaea4 (be) (Tue Jul 21 07:45:44 2020 +0000) on "linux_x64"

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions