Skip to content

InstallMethod in first line of a GAP source file leads to an error #290

@fingolfin

Description

@fingolfin

In a file lib/utils.gi, with the content

InstallMethod(AntimagmaGeneratorPossibleDiagonals, "for possible antiassociative diagonals", [IsPosInt],
    function(n)
        return Filtered(EnumeratorOfTuples([1 .. n], n), t -> ForAll([1 .. n], i -> t[i] <> i));
end);

AutoDoc gave this error:

Error, declarations must be documented within a section,
at lib/utils.gi:2

Inserting an empty line before InstallMethod fixes it.

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