Index: tol_tests/tol/Bugzilla/bug_001182/check.1.tol
===================================================================
--- tol_tests/tol/Bugzilla/bug_001182/check.1.tol	(revision 73c61217533d8e52b2192154fcabcc86d91a2b95)
+++ tol_tests/tol/Bugzilla/bug_001182/check.1.tol	(revision 73c61217533d8e52b2192154fcabcc86d91a2b95)
@@ -0,0 +1,10 @@
+Class @Ejemplo;
+
+@Ejemplo Funcion(Real valor) {
+  @Ejemplo ejemplo = [[ Real _.valor = valor ]]
+};
+
+Class @Ejemplo {
+  Real _.valor
+};
+
Index: tol_tests/tol/Bugzilla/bug_001182/check.2.tol
===================================================================
--- tol_tests/tol/Bugzilla/bug_001182/check.2.tol	(revision 73c61217533d8e52b2192154fcabcc86d91a2b95)
+++ tol_tests/tol/Bugzilla/bug_001182/check.2.tol	(revision 73c61217533d8e52b2192154fcabcc86d91a2b95)
@@ -0,0 +1,12 @@
+NameBlock aux = [[
+Class @Ejemplo;
+
+@Ejemplo Funcion(Real valor) {
+  @Ejemplo ejemplo = [[ Real _.valor = valor ]]
+};
+
+Class @Ejemplo {
+  Real _.valor
+}
+]];
+
Index: tol_tests/tol/Bugzilla/bug_001182/test.tol
===================================================================
--- tol_tests/tol/Bugzilla/bug_001182/test.tol	(revision 73c61217533d8e52b2192154fcabcc86d91a2b95)
+++ tol_tests/tol/Bugzilla/bug_001182/test.tol	(revision 73c61217533d8e52b2192154fcabcc86d91a2b95)
@@ -0,0 +1,38 @@
+/* -*- 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_ =  1182;
+  Text email_ = "vdebuen@tol-project.org"; 
+  Text summary_="Using pre-declared classes";
+  Text link_ = GetTolBugzillaLink(bugNum_);
+
+  //Write here the initial test TOL code if needed
+
+Set cjto.1 = Empty;
+Set cjto.2 = [[1]];
+
+Real numErr0 = Copy(NError);
+#Embed "check.2.tol";
+#Embed "check.1.tol";
+Real numErr1 = Copy(NError);
+
+
+  Set partialResults_ = [[ numErr0,numErr1 ]];
+
+//This is a messure of the success of the test 
+  Real quality_ = And(numErr1==numErr0);
+
+//Return the results 
+  Set resultStr_ = @strTestStatus(summary_, link_, quality_,
+                    "Partial results = "<<partialResults_,
+                    "NO DBServerType", "NO DBServerHost", "NO DBAlias",
+                    email_);
+  WriteLn(""<<resultStr_);
+  resultStr_;
+
+/* */
+
