Skip to content

Compiler does not fully enforce funky contract #488

Description

@cpurdy

Describe the bug
Missing compiler / verifier check for functional interface requiring all funky methods to be implemented together.

To Reproduce
Dima's test case:

    class ClassA implements Hashable {
        @Override
        static<CompileType extends ClassA> Int hashCode(CompileType value) {
            return 123;
        }
    }

Expected behavior
Compiler error stating that not all functional interface methods must be implemented / overridden together.

Additional context
https://discord.com/channels/837372142576205885/1406009322307190834/1521473507815329884

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions