Skip to content

source location wrong in vector indexing error #34

@rfindler

Description

@rfindler

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.

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