pr 06
This commit is contained in:
@@ -149,12 +149,13 @@ pub fn compile_project(
|
||||
for sym in ts.symbols.into_values() {
|
||||
if let Some(existing) = ms.type_symbols.get(sym.name) {
|
||||
return Err(DiagnosticBundle::error(
|
||||
"E_RESOLVE_DUPLICATE_SYMBOL",
|
||||
format!(
|
||||
"Duplicate type symbol '{}' in module '{}'",
|
||||
interner.resolve(existing.name),
|
||||
module_path
|
||||
),
|
||||
Some(existing.span)
|
||||
existing.span,
|
||||
).into());
|
||||
}
|
||||
let _ = ms.type_symbols.insert(sym);
|
||||
@@ -162,12 +163,13 @@ pub fn compile_project(
|
||||
for sym in vs.symbols.into_values() {
|
||||
if let Some(existing) = ms.value_symbols.get(sym.name) {
|
||||
return Err(DiagnosticBundle::error(
|
||||
"E_RESOLVE_DUPLICATE_SYMBOL",
|
||||
format!(
|
||||
"Duplicate value symbol '{}' in module '{}'",
|
||||
interner.resolve(existing.name),
|
||||
module_path
|
||||
),
|
||||
Some(existing.span)
|
||||
existing.span,
|
||||
).into());
|
||||
}
|
||||
let _ = ms.value_symbols.insert(sym);
|
||||
|
||||
Reference in New Issue
Block a user