Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Verse
Summary
Seems like the previous report didn’t work, so i try it again:
Parametric classes not usable outside of own file
Steps to Reproduce
Make a parametric class, reference it outside the file.
If you rename the file with the parametric class, the code will break.
If you rename the file with that references the parametric class, it will work again.
If you rename the file with the parametric class, the code will break again.
If you rename the file with that references the parametric class, it will work again.
Seems like the order in which the files were created/renamed causes this issue.
Edt.: It becomes even worse. Even if UEFN might succeed with compiling verse, the actual preview server might fail.
VerseBuild: Error: C:/build/FortniteGame/Plugins/GameFeatures/c7fab05b-42f5-3207-b282-c58a1a7342da/Content/Daigoro.verse(475,18, 475,42) : Script error 3502: Can’t access a function from a preceding type.
VerseBuild: Error: C:/build/FortniteGame/Plugins/GameFeatures/c7fab05b-42f5-3207-b282-c58a1a7342da/Content/Daigoro.verse(475,18, 475,42): Script error 3502: Can’t access a function from a preceding type.
LogSolarisIde: Error: C:/build/FortniteGame/Plugins/GameFeatures/c7fab05b-42f5-3207-b282-c58a1a7342da/Content/Daigoro.verse(475,18, 475,42): Script Error 3.502: Can’t access a function from a preceding type.
JOB_ID=a96f69d2-5227-46a6-b67e-16104dfbf6ff)., CookJobId:a96f69d2-5227-46a6-b67e-16104dfbf6ff
We encountered an error preparing your project. Error: errors.com.epicgames.content-service.cook-failure, An error occurred while communicating with the game servers (Content (re)cook error errors.com.epicgames.cookplugin.versebuildscripterror.
Too many warnings / errors, aborted processing of errors / warnings
Expected Result
No errors, the class should be called outside the file (it’s not in a module, and even when inside a module, the same error occurs)
Observed Result
Can’t access a function from a preceding type. (3502)
Error only raises once we make a reference to that class.
Platform(s)
All