summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--doc/manual.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/manual.md b/doc/manual.md
index c381ab410..31e69d0ac 100644
--- a/doc/manual.md
+++ b/doc/manual.md
@@ -6889,6 +6889,35 @@ iterator in which case the overloading resolution takes place:
   var x = 4
   write(stdout, x) # not ambiguous: uses the module C's x
   ```
+Modules can share their name, however, when trying to qualify a identifier with the module name the compiler will fail with ambiguous identifier error. One can qualify the identifier by aliasing the module. 
+
+
+```nim
+# Module A/C
+proc fb* = echo "fizz"
+```
+
+
+```nim
+# Module B/C
+proc fb* = echo "buzz"
+```
+
+
+```nim
+import A/C
+import B/C
+
+C.fb() # Error: ambiguous identifier: 'fb'
+```
+
+
+```nim
+import A/C as fizz
+import B/C 
+
+fizz.fb() # Works
+```
 
 
 Packages