NNBD: Analyzer allows inherit two interfaces with incompatible type parameters: Object?
vs FutureOr
, Object?
vs FutureOr<FutureOr>
#40454
Labels
Dart VM version: 2.8.0-edge.40f23c735f04433e4fc334fbd674474bd3de0f8b (Tue Jan 28 01:14:48 2020 +0000) on "linux_x64"
This issue is similar with #40453, but dart and analyzer behave in the different ways here.
The following source code declares classes X1 and X2 which inherit classes with incompatible type arguments:
This code throws two compile errors with dart and passes with analyzer.
Seems like error should be thrown in both cases.
Sample output is:
The text was updated successfully, but these errors were encountered: