Skip to content

Function super types still broken for same literals #8106

@TheLimeGlass

Description

@TheLimeGlass

Skript/Server Version

2.12.0 (pulled from dev/patch as of posting this, even with the assumed function super type fixes)
MC 1.21.5

Bug Description

Conflict in the function parameters between damage type and block data

function example(blockdata: block data):
	stop

on script load:
	example(lava)
[01:32:21 INFO]: Line 5: (test.sk)
[01:32:21 INFO]:     The function 'example(damagetype)' does not exist.
[01:32:21 INFO]:     Line: example(lava)
[01:32:21 INFO]:

Expected Behavior

To properly reparse the literal to be the correct type.
You need to apply the same fixes I did for comparing same literals but for the function parameters #5503

Steps to Reproduce

run the script

Errors or Screenshots

No response

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

    PR availableIssues which have a yet-to-be merged PR resolving itbugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions