c3lang / c3c

Compiler for the C3 language
https://c3-lang.org
GNU Lesser General Public License v3.0
2.68k stars 163 forks source link

Compiler crash using enum nameof from different module #1205

Closed cbuttner closed 3 months ago

cbuttner commented 3 months ago
module test;
import foo;

fn int main(String[] args) {
  foo::bar(ONE);
  return 0;
}

enum Enum : int {ONE, TWO, THREE}

module foo;
import test;

fn void bar(Enum e) {
  e.nameof;
}
lerno commented 3 months ago

This should be fixed now.

cbuttner commented 3 months ago

Looks fixed, thanks.