Files
sdk/pkg/front_end/testcases/general/issue45700.dart.weak.expect
T
Johnni Winther b7c19384b7 [cfe] Handle function types in the mixin on clause
Closes #45700

Change-Id: Ieaab6fff727ba2b7ecf4f02be820dc54fea2a9db
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/195903
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-04-19 13:11:28 +00:00

15 lines
360 B
Plaintext

library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue45700.dart:5:7: Error: Can't use a function type as supertype.
// mixin M on Function() {}
// ^
//
import self as self;
import "dart:core" as core;
abstract class M extends core::Object /*isMixinDeclaration*/ {
}
static method main() → void {}