Skip to content

The docs didn't state the v128.extract_lane's idx arg needs to compile time constant #2877

Closed
@hinum

Description

@hinum

Bug description

as the name suggested, the docs entry for v128.extract_lane didn't state that the idx argument need to be compile time constant

Steps to reproduce

  1. try to compile this
let a = 0
v128.extract_lane<u8>(v128.splat<u8>(0), a)
  1. compile error thrown

AssemblyScript version

not sure if relevant but 0.27.30

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions