Skip to content

[vm/ffi] struct inheritance #37298

Closed
Closed
@dcharkes

Description

@dcharkes

Should we allow subtyping of structs?

import dart:ffi show Struct, Int8;

A extends Struct {
  @Int8()
  int x;
}

B extends A {
  @Int8()
  int y;
}

Where B has all the fields of A.

/cc @sjindel-google

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-ffitype-design

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions