[vm/ffi] NNBD treatment of nullptr #40234
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-ffi
NNBD
Issues related to NNBD Release
vm-nnbd-unfork-sdk
Label for all issues that need to be done before the nnbd sdk can be unforked
We've given
nullptr
aNull
type arg to make it easily assignable without casts to arbitrary type args.sdk/sdk/lib/ffi/ffi.dart
Lines 31 to 33 in e7b1392
sdk/tests/ffi/data_test.dart
Line 332 in e7b1392
However, this is no longer allowed with NNBD.
cc @mkustermann
Proposed solution is to change it to the following.
However, this has some downsides:
nullptr
as deprecated, complicating migration.(Note that we want to keep the API for the NNBD sdk and the legacy sdk compatible, so we also need to migrate the old sdk.)
The text was updated successfully, but these errors were encountered: