Skip to content

Enforce that interface! isn't called from a class #4

Description

@amomchilov

Only modules can be interfaces.

These should raise:

class MyClass
  interface! # ❌
end

module MyInterface
  class << self
    interface! # ❌
  end
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions