mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Method ambiguity when importing parent module publicly in private submodule. #2208
This commit is contained in:
11
test/test_suite/methods/method_lookup_extensions_2208.c3
Normal file
11
test/test_suite/methods/method_lookup_extensions_2208.c3
Normal 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();
|
||||
Reference in New Issue
Block a user