Skip to content

regression: {.pure.} pragma fails to hide enum #16462

Open
@geekrelief

Description

@geekrelief

Compiling with 979148e breaks compilation of https://github.com/pragmagic/godot-nim

Current Output

C:\godot\gdnim\deps\godot\core\poolarrays.nim(128, 16) template/generic instantiation of definePoolArray from here
C:\godot\gdnim\deps\godot\core\poolarrays.nim(49, 26) Error: type expected, but got symbol 'Array' of kind 'enumField'

Expected Output

This compiled without error before.

Additional Information

979148e breaks.
Two modules are involved. https://github.com/pragmagic/godot-nim/blob/master/godot/core/poolarrays.nim and https://github.com/pragmagic/godot-nim/blob/master/godot/core/arrays.nim

poolarrays has a template that fails because Array is not found.

template definePoolArray(T, GodotT, DataT, fieldName, newProcName, initProcName;
                         noData = false) =

  proc newProcName*(arr: Array): T {.inline.} =
    #new(result, poolArrayFinalizer)
    new(result)
    initProcName(result.fieldName, arr.godotArray[])

poolarrays imports arrays online 125.

import arrays

definePoolArray(PoolByteArray, GodotPoolByteArray, uint8,
                godotPoolByteArray, newPoolByteArray,
                initGodotPoolByteArray)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions