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

source location wrong in vector indexing error #34

Open
rfindler opened this issue Mar 10, 2024 · 0 comments
Open

source location wrong in vector indexing error #34

rfindler opened this issue Mar 10, 2024 · 0 comments

Comments

@rfindler
Copy link

This program:

#lang dssl2
let x = [1,2,3]
x[[1,2]]

produces this error:

. . git/exp/plt/racket/share/pkgs/dssl2/private/syntax.rkt:418:7: «vec».__index_ref__: contract violation
  expected: nat?
  given: [1, 2]
  in: the 1st argument of
      (-> nat? AnyC)
  contract from: «vec».__index_ref__
  blaming: method caller
   (assuming the contract is correct)
  at: /Users/robby/tmp.rkt:3:0

which has a source location inside dssl2 instead of inside the dssl2 program.

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