Skip to content

[FIX] Check for duplicate names across all script descriptors - #574

Merged
AbnormalPoof merged 1 commit into
FunkinCrew:developfrom
ahmed7p:fix-duplicate
Oct 28, 2026
Merged

AbnormalPoof merged 1 commit into
FunkinCrew:developfrom
ahmed7p:fix-duplicate

Conversation

@ahmed7p

@ahmed7p ahmed7p commented Oct 28, 2026

Copy link
Copy Markdown

Description

This PR fixes an issue where scripts could be registered with duplicate fully-qualified names across different types (classes, interfaces, and enums).

Changes

  • Implemented a unified checkDuplicate check to globally prevent naming conflicts.

Before

// You could declare a class and an enum with the exact same name
class Name {}
enum Name {}

After

// Trying to use the same name shows an error now
class Name {}
enum Name {}
image image

@AbnormalPoof
AbnormalPoof merged commit 9a0e805 into FunkinCrew:develop Oct 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants