-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
vec[1 +1] gives unhelpful error #49676
Copy link
Copy link
Closed
Labels
error messagesBetter, more actionable error messagesBetter, more actionable error messagesgood first issueIndicates a good issue for first-time contributors to JuliaIndicates a good issue for first-time contributors to Julia
Metadata
Metadata
Assignees
Labels
error messagesBetter, more actionable error messagesBetter, more actionable error messagesgood first issueIndicates a good issue for first-time contributors to JuliaIndicates a good issue for first-time contributors to Julia
I ran across this unhelpful error message
This is because typed comprehensions
Float64[1 2]and array accessvec[3]share the same syntax. Giving a hint when the "type" used in a typed comprehension is not a type and is an indexable object might help.