Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't subscript an Int buffer #1526

Open
dholmin opened this issue Jul 16, 2024 · 0 comments
Open

Can't subscript an Int buffer #1526

dholmin opened this issue Jul 16, 2024 · 0 comments

Comments

@dholmin
Copy link

dholmin commented Jul 16, 2024

I'm trying to compile this piece of code:

public fun main()
{
  let numbers: Int[2] = [1, 2]
  print(numbers[0], radix: 10)
}

But I get this error:

main.hylo:15.9-16: error: cannot call value of type 'Int[2]' as a subscript
  print(numbers[0], radix: 10)
        ~~~~~~~

I'm using Hylo on a MacBook Pro with M1 Pro, compiled from this commit: f6ee33c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant