Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Comptime error in System.EnumParser<T>.OnTypeInit() #1940

Closed
aharabada opened this issue Mar 16, 2024 · 1 comment
Closed

[Bug] Comptime error in System.EnumParser<T>.OnTypeInit() #1940

aharabada opened this issue Mar 16, 2024 · 1 comment

Comments

@aharabada
Copy link
Contributor

Here is the project to reproduce the bug: here

Im getting the following error when building:

ERROR: Unable to comptime System.EnumParser<T>.OnTypeInit() at line 384:22 in c:\Program Files\BeefLang\BeefLibs\corlib\src\Enum.bf
  public static void OnTypeInit()
                     ^^^^^^^^^^
  > Method call preparation 'System.EnumParser<@T0>.OnTypeInit()' failed in comptime System.EnumParser<T>.OnTypeInit() at line 386:4 in c:\Program Files\BeefLang\BeefLibs\corlib\src\Enum.bf
  > Comptime method generation error: Failure during comptime generation of ?OnTypeInit@COMPTIME$?$EnumParser@U_T0@@@System@bf@@SAXXZ: Unable to locate method ?get__MemberOffset__im@FieldInfo@Reflection@System@bf@@QEAAHXZ at line 397:6 in c:\Program Files\BeefLang\BeefLibs\corlib\src\Enum.bf
@bfiete
Copy link
Collaborator

bfiete commented Mar 17, 2024

Fixed at fe2244f

@bfiete bfiete closed this as completed Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants