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

Exception when doing [] =~ Pfx("abc") #647

Closed
ilyash-b opened this issue Jun 24, 2023 · 1 comment
Closed

Exception when doing [] =~ Pfx("abc") #647

ilyash-b opened this issue Jun 24, 2023 · 1 comment
Labels

Comments

@ilyash-b
Copy link
Contributor

  • regression
$ ngs -pi '[1] =~ Pfx("abc")'
[ERROR 2023-06-24 19:32:02 +04] +----------------------------------------------------------------------+
[ERROR 2023-06-24 19:32:02 +04] | The arguments did not match any of the methods' parameters.          |
[ERROR 2023-06-24 19:32:02 +04] | Method or MultiMethod name: init                                     |
[ERROR 2023-06-24 19:32:02 +04] | Called with arguments' types: Iter, Str                              |
[ERROR 2023-06-24 19:32:02 +04] | Please check that you pass the right number of arguments.            |
[ERROR 2023-06-24 19:32:02 +04] | Please check that arguments' types are matching methods' parameters. |
[ERROR 2023-06-24 19:32:02 +04] +----------------------------------------------------------------------+
[ERROR 2023-06-24 19:32:02 +04] Exception of type MethodNotFound occurred
[ERROR 2023-06-24 19:32:02 +04] Info: message = (root) = String of length 41: Normal type constructor: init() not found
[ERROR 2023-06-24 19:32:02 +04] Info: callable = Info: callable - (Failed to inspect)
[ERROR 2023-06-24 19:32:02 +04] Info: args:
[ERROR 2023-06-24 19:32:02 +04]   (root) - Arr of size 2
[ERROR 2023-06-24 19:32:02 +04]   [0] - Iter with 0 key/value pair(s)
[ERROR 2023-06-24 19:32:02 +04]   [1] = String of length 3: abc
[ERROR 2023-06-24 19:32:02 +04] Frame 0: <builtin-stdlib>:8530:2 - 8530:35
[ERROR 2023-06-24 19:32:02 +04] Frame 1: <builtin-stdlib>:8504:21 - 8504:30 [in bootstrap_exception_catch_wrapper]
[ERROR 2023-06-24 19:32:02 +04] Frame 2: <builtin-stdlib>:8412:12 - 8412:24 [in bootstrap]
[ERROR 2023-06-24 19:32:02 +04] Frame 3: <command line -pi switch>:2:4 - 2:7
[ERROR 2023-06-24 19:32:02 +04] Frame 4: <builtin-stdlib>:820:12 - 820:16 [in =~]
[ERROR 2023-06-24 19:32:02 +04] Frame 5: <builtin-stdlib>:7068:2 - 7082:3 [in =~]
[ERROR 2023-06-24 19:32:02 +04] Frame 6: <builtin-stdlib>:172:4 - 172:6 [in block]
[ERROR 2023-06-24 19:32:02 +04] Frame 7: <builtin-stdlib>:7069:7 - 7069:11
[ERROR 2023-06-24 19:32:02 +04] Frame 8: /Users/ilyap/ngs/lib/autoload/globals/Iter.ngs:379:24 - 379:28 [in Iter]
+----------------------------------------------------------------------+
| The arguments did not match any of the methods' parameters.          |
| Method or MultiMethod name: init                                     |
| Called with arguments' types: Iter, Str                              |
| Please check that you pass the right number of arguments.            |
| Please check that arguments' types are matching methods' parameters. |
+----------------------------------------------------------------------+
@ilyash-b
Copy link
Contributor Author

In dev

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

No branches or pull requests

1 participant