Skip to content

@JCState drops generic arguments from property types #1

Description

@schwa
  import JCState
  import simd

  @JCState
  struct S {
      var v: SIMD3<Float> = .init(0, 0, 0)
  }

Compile errors in the expansion: "reference to generic type 'SIMD3' requires arguments in <...>" and "generic parameter 'Scalar' could not be inferred". The macro emits bare SIMD3 instead of SIMD3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions