Index: tol_tests/tol/Bugzilla/bug_001104/check.tol
===================================================================
--- tol_tests/tol/Bugzilla/bug_001104/check.tol	(revision fd127bc460c45b0a1175ee446777a5bb5e2dd27b)
+++ tol_tests/tol/Bugzilla/bug_001104/check.tol	(revision fd127bc460c45b0a1175ee446777a5bb5e2dd27b)
@@ -0,0 +1,19 @@
+NameBlock Modulo = [[
+  Class @ClaseA {
+    Real valueA
+  }
+]];
+
+Modulo::@ClaseA a = [[ Real valueA = 1]];
+
+NameBlock nb = [[
+  Set instance. = [[ Modulo::@ClaseA instance = [[ Real valueA = 1 ]] ]];
+//Modulo::@ClaseA GetInstance(Real void) { instance.[1] }
+  NameBlock GetInstance(Real void) { instance.[1] }
+]];
+
+//NameBlock nb::GetInstance(?); //<- esto no falla
+//Modulo::@ClaseA b = nb::GetInstance(?); //<- esto no falla
+//Modulo::@ClaseA nb::GetInstance(?); //<- esto falla
+Code f = nb::GetInstance;
+Modulo::@ClaseA f(?); //<- esto falla
Index: tol_tests/tol/Bugzilla/bug_001104/test.tol
===================================================================
--- tol_tests/tol/Bugzilla/bug_001104/test.tol	(revision fd127bc460c45b0a1175ee446777a5bb5e2dd27b)
+++ tol_tests/tol/Bugzilla/bug_001104/test.tol	(revision fd127bc460c45b0a1175ee446777a5bb5e2dd27b)
@@ -0,0 +1,41 @@
+/* -*- mode: C++ -*- */
+//////////////////////////////////////////////////////////////////////////////
+// FILE   : test.tol
+// PURPOSE: test for a resolved bug
+//////////////////////////////////////////////////////////////////////////////
+
+//Sets the bugzilla identifier number, your e-mail and the bugŽs summary
+  Real bugNum_ =  1104;
+  Text email_ = "vdebuen@tol-project.org"; 
+  Text summary_="Error typing returned instances with the class name";
+  Text link_ = GetTolBugzillaLink(bugNum_);
+
+  //Write here the initial test TOL code if needed
+  Real numErr0 = Copy(NError);
+  Real numWar0 = Copy(NWarning);
+
+  WriteLn("TRACE 1 NObjects = "<<Copy(NObject));
+
+  #Embed "check.tol";
+
+  WriteLn("TRACE 2 NObjects = "<<Copy(NObject));
+
+  Real numErr1 = Copy(NError);
+  Real numWar1 = Copy(NWarning);
+
+
+  Set partialResults_ = [[ numErr0,numErr1]];
+
+//This is a messure of the success of the test 
+  Real quality_ = And(numErr0 == numErr1);
+
+//Return the results 
+  Set resultStr_ = @strTestStatus(summary_, link_, quality_,
+                    "Partial results = "<<partialResults_,
+                    "NO DBServerType", "NO DBServerHost", "NO DBAlias",
+                    email_);
+  WriteLn(""<<resultStr_);
+  resultStr_;
+
+/* */
+
