-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
feature-langLanguage or library featureLanguage or library featurequality-of-lifeMakes life better: error reporting, debugging, etcMakes life better: error reporting, debugging, etc
Milestone
Description
class Foo {}
class method a: x b: y::Float
[a, b]
end
> Foo a: 1 b: 1
PANIC: Float expected, got: Integer 1
001 Foo a: 1 b: 1
^^^^^^^^^ Float expected, got: Integer 1
Should be something like:
001 Foo a: 1 b: 1
^^^^ Float expected by Foo#a:b:, got: Integer 1
- Identify which argument is the problem
- Identify which method was actually called, since that might not be apparent at call site.
As an alternative, possibly:
001 Foo a: 1 b: 1
^^^^^^^^^ [Any, Float] expected by Foo#a:b:, got: [Integer, Integer]
Metadata
Metadata
Assignees
Labels
feature-langLanguage or library featureLanguage or library featurequality-of-lifeMakes life better: error reporting, debugging, etcMakes life better: error reporting, debugging, etc