Skip to content

feat: allow for an address space u0 in memory,input,ouput #1627

@amkCha

Description

@amkCha
pub input r() -> (b:u2)
pub output o(b:u1) -> (b:u2)
fn main() {
  o[0] = r[]
}

gives out

panic: runtime error: index out of range [0] with length 0 [recovered]
	panic: runtime error: index out of range [0] with length 0

and this

pub input r() -> (b:u32)
pub output o(b:u1) -> (b:u32)
fn main() {
  o[0] = r[0]
}

gives out

too many arguments (expected 0)

  o[0] = r[0]
         ^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions