Method ambiguity when importing parent module publicly in private submodule. #2208

This commit is contained in:
Christoffer Lerno
2025-06-18 00:18:56 +02:00
parent f07bd3cbc6
commit eb75d8f82a
7 changed files with 136 additions and 33 deletions

View File

@@ -0,0 +1,11 @@
fn void main() {}
module foo @private;
typedef Int = int;
module foo::bar @private;
import foo @public @norecurse;
fn Int Int.foo(x) => x + 0xc3;
fn Int bar(Int x) => x * x.foo();