Skip to content

[vm/ffi] FfiNative optional arguments should be compile-time error #47169

Closed
@dcharkes

Description

@dcharkes

Optional arguments (positional and named) do not create compile-time errors:

@FfiNative<Double Function({Double foo})>('Math_sqrt', isLeaf:true)
external double _square_root(double x);

@FfiNative<Double Function([Double foo])>('Math_sqrt', isLeaf:true)
external double _square_root(double x);

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-ffi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions