You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dart VM version: 2.8.0-edge.40f23c735f04433e4fc334fbd674474bd3de0f8b (Tue Jan 28 01:14:48 2020 +0000) on "linux_x64"
NNBD Spec reads:
The default bound of generic type parameters is treated as Object?.
However, currently this is not so.
Please run the following code:
classA<T> {}
main() {
print(A);
}
It prints A<dynamic> whereas it should be A<Object?>:
iarkh@med:~/dart/dart-sdk/sdk/tests/co191/src/LanguageFeatures/nnbd$ dart --enable-experiment=non-nullable test.dart
A
The text was updated successfully, but these errors were encountered:
iarkh
changed the title
NNBD: Default type bound of the generic type parameter is incorrect: it's dynamic instead of Object?
NNBD: Default type bound of the generic type parameter is incorrect in runtime: it's dynamic instead of Object?
Jan 29, 2020
a-siva
added
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
NNBD
Issues related to NNBD Release
labels
Jan 29, 2020
Dart VM version: 2.8.0-edge.40f23c735f04433e4fc334fbd674474bd3de0f8b (Tue Jan 28 01:14:48 2020 +0000) on "linux_x64"
NNBD Spec reads:
It prints
A<dynamic>
whereas it should be A<Object?>:The text was updated successfully, but these errors were encountered: