mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-28 22:02:37 +01:00
To ensure the outer package name is not mangled into imported names.
With this change I can successfully link/run a two-file example:
```
package Mod;
fn HelloWorld() {
Core.Print(42);
}
```
```
import Mod;
fn Run() -> i32 {
Mod.HelloWorld();
return 0;
}
```
```
$ carbon compile mod.carbon main.carbon
$ carbon link mod.o main.o --output=a.out
$ ./a.out
42
```
\o/
---------
Co-authored-by: Jon Ross-Perkins <jperkins@google.com>