blob: 8e5684f5dd15f8840285b9226f643f3341e29848 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/class_modifiers/subtype_function.dart:5:17: Error: The class 'Function' can't be extended outside of its library because it's a final class.
// class A extends Function {}
// ^
//
// pkg/front_end/testcases/class_modifiers/subtype_function.dart:7:20: Error: The class 'Function' can't be implemented outside of its library because it's a final class.
// class B implements Function {}
// ^
//
// pkg/front_end/testcases/class_modifiers/subtype_function.dart:9:14: Error: The class 'Function' can't be used as a mixin because it isn't a mixin class nor a mixin.
// class C with Function {}
// ^
//
// pkg/front_end/testcases/class_modifiers/subtype_function.dart:9:7: Error: The type 'C' must be 'base', 'final' or 'sealed' because the supertype 'Function' is 'final'.
// Try adding 'base', 'final', or 'sealed' to the type.
// class C with Function {}
// ^
//
import self as self;
import "dart:core" as core;
class A extends core::Object {
synthetic constructor •() self::A
;
}
class B extends core::Object {
synthetic constructor •() self::B
;
}
abstract class _C&Object&Function extends core::Object {
synthetic constructor •() self::_C&Object&Function
;
}
class C extends self::_C&Object&Function {
synthetic constructor •() self::C
;
}