Skip to content

[Bug] Duplicate function definition in interfaces does not cause an error #29560

Description

@mohammadfawaz

Example:

interface Foo {
    fn main(public a: u32, b: u32);
    fn main(public a: u32, b: u32) -> u32;
}

This compiles fine regardless of how the two functions are defined. We should error out on duplicate function name.

We should also check if this is an issue for other items in an interface.

Metadata

Metadata

Assignees

Labels

🐛 bugSomething isn't working🧱 Core CompilerAnything related to the core compiler including parsing, analysis, transforms, codegen, etc.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions