Skip to content

No Warnings When Passing Plurals in Singular Params in Functions  #4859

Closed
@NotSoDelayed

Description

@NotSoDelayed

Skript/Server Version

[09:52:28] [Server thread/INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[09:52:28] [Server thread/INFO]: [Skript] Skript's documentation can be found here: https://skriptlang.github.io/Skript
[09:52:28] [Server thread/INFO]: [Skript] Server Version: git-Paper-794 (MC: 1.16.5)
[09:52:28] [Server thread/INFO]: [Skript] Skript Version: 2.6.2
[09:52:28] [Server thread/INFO]: [Skript] Installed Skript Addons: 
[09:52:28] [Server thread/INFO]: [Skript]  - skript-yaml v1.4
[09:52:28] [Server thread/INFO]: [Skript]  - skript-reflect v2.3 (https://github.com/TPGamesNL/skript-reflect)
[09:52:28] [Server thread/INFO]: [Skript]  - reqn v1.3.0-alpha
[09:52:28] [Server thread/INFO]: [Skript]  - SkriptJSON v1.0.0
[09:52:28] [Server thread/INFO]: [Skript] Installed dependencies: None

Bug Description

Passing plurals (List) in singular parameter in function does not throw warning, and first element was taken from the plural into the function and proceeds.

Expected Behavior

Throws a warning of not to use list in singular param.

Steps to Reproduce

Code used:

function e(a1: string, a2: boolean, a3: num):
    send "%{_a1}% %{_a2}% %{_a3}%" to console

Trigger: e(("String1", "String2"), (true, false), (0, 1))

Errors or Screenshots

Screenshot_20220701-154739_Edge

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.completedThe issue has been fully resolved and the change will be in the next Skript update.priority: lowIssues that are not harmful to the experience but are related to useful changes or additions.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions