Skip to content

Constant field causing issues setting non-constant fields of same name on other structs #27

@sovdeeth

Description

@sovdeeth

Environment Information

[01:16:35 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[01:16:35 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[01:16:35 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[01:16:35 INFO]: [Skript] Server Version: 1.21.11-2556-d0b1b32 (MC: 1.21.11)
[01:16:35 INFO]: [Skript] Skript Version: 2.14.0 (selfbuilt-unknown)
[01:16:35 INFO]: [Skript] Installed Skript Addons:
[01:16:35 INFO]: [Skript]  - skript-gui v1.3.2 (https://github.com/APickledWalrus/skript-gui)
[01:16:35 INFO]: [Skript]  - DiSky v4.26.0-nightly
[01:16:35 INFO]: [Skript]  - skript-reflect v2.6.2 (https://github.com/SkriptLang/skript-reflect)
[01:16:35 INFO]: [Skript]  - oopsk v1.0-beta2 (https://github.com/sovdeeth/oopsk)
[01:16:35 INFO]: [Skript]  - SkBee v3.15.0 (https://github.com/ShaneBeee/SkBee)
[01:16:35 INFO]: [Skript] Installed dependencies:
[01:16:35 INFO]: [Skript]  - WorldGuard v7.0.16-beta-01+ce4622f

Bug Description

two fields with the same name of different structs but one const and other not, ccauses parse error when trying to set the non-const one.

Steps to Reproduce

struct a:
  constant foo: string = "a"

struct b:
  foo: string = "b"

Try to set {_b}->foo.

Errors or Screenshots

No response

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions