Replies: 2 comments 5 replies
-
|
Hi, can you share more details please. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Of course! test_example_2.gd: test_class.gd: |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to mock a class with an empty dictionary as a default argument of a function, but it is always throwing the following error:
"SCRIPT ERROR: Invalid type in function 'Object(GdDefaultValueDecoder.gd)::_on_type_Dictionary (Callable)'. Cannot convert argument 1 from String to Dictionary.".
After some digging, i noticed that the array function, "_on_type_Array" receives an "Variant" type and doing the same to the "_on_type_Dictionary" seems to fix the problem. Either that, or removing the default argument, leaving the argument with no default value. Is there something I'm missing with mocking these kinds of classes/functions?
Beta Was this translation helpful? Give feedback.
All reactions