[Mono-bugs] [Bug 71129][Wis] New - Can't return a function from another function.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 10 Jan 2005 05:03:51 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by cesar@ciencias.unam.mx.
http://bugzilla.ximian.com/show_bug.cgi?id=71129
--- shadow/71129 2005-01-10 05:03:51.000000000 -0500
+++ shadow/71129.tmp.24614 2005-01-10 05:03:51.000000000 -0500
@@ -0,0 +1,46 @@
+Bug#: 71129
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: JScript
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: cesar@ciencias.unam.mx
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Can't return a function from another function.
+
+If I try to have a function as the returned value from a function, mjs
+can't compile that soft of program.
+
+Version: current svn.
+
+Actual Results:
+
+Unhandled Exception: System.Exception: method g not found
+in <0x0010a> Microsoft.JScript.Identifier:load_script_func
+(Microsoft.JScript.EmitContext,Microsoft.JScript.FunctionDeclaration)
+in <0x002bf> Microsoft.JScript.Identifier:Emit (Microsoft.JScript.EmitContext)
+in <0x0006a> Microsoft.JScript.Expression:Emit (Microsoft.JScript.EmitContext)
+in <0x0004b> Microsoft.JScript.Return:Emit (Microsoft.JScript.EmitContext)
+in <0x000f1> Microsoft.JScript.Block:Emit (Microsoft.JScript.EmitContext)
+in <0x0018e> Microsoft.JScript.FunctionDeclaration:Emit
+(Microsoft.JScript.EmitContext)
+in <0x00082> Microsoft.JScript.Block:Emit (Microsoft.JScript.EmitContext)
+in <0x00011> Microsoft.JScript.ScriptBlock:Emit (Microsoft.JScript.EmitContext)
+in <0x0010a> Microsoft.JScript.CodeGenerator:Emit (Microsoft.JScript.AST)
+in <0x00015> Microsoft.JScript.CodeGenerator:Run (string,Microsoft.JScript.AST)
+in [0x0003d] (at
+/home/cesar/mono/mcs/class/Microsoft.JScript/Microsoft.JScript/driver.cs:50)
+Microsoft.JScript.Driver:Main (string[])
+
+
+Expected Results:
+
+3