Change ordering to simplify adding methods to type in conditional modules.

This commit is contained in:
Christoffer Lerno
2025-01-06 22:36:29 +01:00
parent 5fa6ecf9ae
commit 51e0e5e66d
5 changed files with 34 additions and 17 deletions

View File

@@ -0,0 +1,15 @@
module std::core::env;
const bool FOO = true;
module foo @if(env::FOO);
struct Foo { int a; }
module bar;
import std, foo;
fn void Foo.baz(self) {}
fn int main()
{
return 0;
}