Beef icon indicating copy to clipboard operation
Beef copied to clipboard

[Bug] Nested comptime methods can't call themselves

Open Rune-Magic opened this issue 1 year ago • 0 comments

Reproduction:

[Comptime]
void ComptimeMethod()
{
    [Comptime]
    void NestedComptimeMethod()
    {
        NestedComptimeMethod();
    }
  
    NestedComptimeMethod();
}

ComptimeMethod();

Error:

ERROR: Comptime method generation had errors
  ComptimeMethod();
  ^^^^^^^^^^^^^^
  > Method 'NestedComptimeMethod' does not exist
     NestedComptimeMethod();
     ^^^^^^^^^^^^^^^^^^^^

Rune-Magic avatar Oct 03 '24 10:10 Rune-Magic