-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onlegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.library-ffi
Milestone
Description
The following code is accepted by the dart runtime, but rejected by the analyzer.
const EIGHT = 8;
class Struct8BytesInlineArrayInt extends Struct {
@Array(EIGHT)
external Array<Uint8> a0;
}The ffi_verifier expects an int or int list expression here. Instead, we should evaluate the annotation to a const, so that referenced consts are inlined.
@timsneath thanks for reporting.
timsneath
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onlegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.library-ffi