Open
Description
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)