NNBD: Dart does not throw compile error when declare incorrectly super bounded to non-null Object variable. #42429
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
NNBD
Issues related to NNBD Release
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Dart VM version: 2.9.0-16.0.dev (dev) (Tue Jun 16 10:35:10 2020 +0200) on "windows_x64"
Here is a source code example:
Dart passes with this with nnbd enabled.
Object is not a top type with null-safety enabled, so actually dart should throw a compile error for
a2
anda4
here.See also Issue #42415.
The text was updated successfully, but these errors were encountered: