Open iarkh opened 4 years ago
See #30273
The same issue exists for mixins as well. Analyzed doesn't allow to mixin deferred classes but CFE allows
import 'deferred_lib.dart' deferred as d;
class B {
}
class C extends B with d.A {} // No isses in CFE, in analyzer error - Classes can't mixin deferred classes.
main() {
new C();
}
The issue is still exists on CFE
Dart VM version: 2.9.0-10.0.dev (dev) (Tue May 19 15:16:48 2020 +0200) on "windows_x64"
The following source code declares a class which extends deferred class:
Analyzer throws a compile error here whereas dart passes without any errors and warnings. Sample output is:
Seems like according to the Dart Language Spec dart also should throw an exception here.