Share method extensions across modules by default. Fix bug in string split.

This commit is contained in:
Christoffer Lerno
2022-12-14 10:55:35 +01:00
committed by Christoffer Lerno
parent dcf0b4c580
commit abf0f64ac0
11 changed files with 45 additions and 19 deletions

View File

@@ -14,14 +14,15 @@ macro void foo::Bar.@test(Bar &bar)
io::println("Inside of baz::Bar.test");
}
macro void Bar.@test(Bar &bar) // #error: This macro method is already defined in this module
module bad;
import foo;
macro void Bar.@test(Bar &bar) // #error: This macro method is already defined for 'Bar'.
{
io::println("Inside of baz::Bar.test");
}
module abc;
import foo;
import baz;
fn void main()
{