Add clone for error expression. Fixes #13443
[mono.git] / mcs / mcs / namespace.cs
index 38fbac1684ed0ffcf992f653c8f8a6e61e88c15f..f454b93498665cd1da1c66d74f2f4d03f96d42e9 100644 (file)
@@ -1140,7 +1140,7 @@ namespace Mono.CSharp {
                        if (aliases != null && arity == 0) {
                                UsingAliasNamespace uan;
                                if (aliases.TryGetValue (name, out uan)) {
-                                       if (fne != null) {
+                                       if (fne != null && mode != LookupMode.Probing) {
                                                // TODO: Namespace has broken location
                                                //Report.SymbolRelatedToPreviousError (fne.Location, null);
                                                Compiler.Report.SymbolRelatedToPreviousError (uan.Location, null);