-
-
Notifications
You must be signed in to change notification settings - Fork 408
Open
Labels
PR availableIssues which have a yet-to-be merged PR resolving itIssues which have a yet-to-be merged PR resolving itbugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.An issue that needs to be fixed. Alternatively, a PR fixing an issue.functionsRelated to functionsRelated to functionspriority: mediumIssues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).
Description
Skript/Server Version
[10:21:33 INFO] [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[10:21:33 INFO] [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[10:21:33 INFO] [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[10:21:33 INFO] [Skript] Server Version: 1.21.8-60-29c8822 (MC: 1.21.8)
[10:21:33 INFO] [Skript] Skript Version: 2.13.0-pre1 (skriptlang-github)
[10:21:33 INFO] [Skript] Installed Skript Addons:
[10:21:33 INFO] [Skript] - skript-reflect v2.6 (https://github.com/SkriptLang/skript-reflect)
[10:21:33 INFO] [Skript] - SkMug v1.0-pre1
[10:21:33 INFO] [Skript] - SkBee v3.12.2 (https://github.com/ShaneBeee/SkBee)
[10:21:33 INFO] [Skript] Installed dependencies: None
Bug Description
Returning a list of default values when not providing a value when calling a function throws a severe error.
Expected Behavior
For the function to simply return the default values without erroring
Steps to Reproduce
Using the following, simple code:
function test(width: integers = (1, 7)) :: integers:
return {_width::*}
Then running !broadcast test()
throws severe error.
Errors or Screenshots
Other
Notes:
This does not occur when providing only 1 default value
This does occur on both the 2.13-prerelease and 2.12.2.
This does occur without addons installed
Agreement
- I have read the guidelines above and affirm I am following them with this report.
Metadata
Metadata
Assignees
Labels
PR availableIssues which have a yet-to-be merged PR resolving itIssues which have a yet-to-be merged PR resolving itbugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.An issue that needs to be fixed. Alternatively, a PR fixing an issue.functionsRelated to functionsRelated to functionspriority: mediumIssues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).