mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Change ordering to simplify adding methods to type in conditional modules.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user