[Mono-bugs] [Bug 412230] New: Generics: compiler errors when compiling Dynamic Language Runtime beta 3

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jul 25 11:16:25 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=412230

User jbenjos at fau.edu added comment
https://bugzilla.novell.com/show_bug.cgi?id=412230#c1

           Summary: Generics: compiler errors when compiling Dynamic
                    Language Runtime beta 3
           Product: Mono: Compilers
           Version: 1.9
          Platform: i386
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jbenjos at fau.edu
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development


Description of Problem:
The Mono compiler generates compiler errors when attempting to compiler DLRb3.

As downloaded from here:
http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx?ReleaseId=12988 

These errors seem to be based on the DLR's use of generics.

Steps to reproduce the problem:
1. Download DLR from above website.
2. Open solution in MonoDevelop
3. Remove "System.dll" from Microsoft.Scripting.Core
3. Attempt to build


Actual Results:
[Task:File=/home/jonathan/Desktop/gg/IronPython-2.0B3/Src/Microsoft.Scripting.Core/Actions/ComDispatch/ComTypeLibDesc.cs,
Line=136, Column=9, Type=Error, Priority=Normal, Description=The type `T' must
be a reference type in order to use it as type parameter `T' in the generic
type or method `Microsoft.Scripting.Actions.RuleBuilder<T>'.(CS0452)]
[Task:File=/home/jonathan/Desktop/gg/IronPython-2.0B3/Src/Microsoft.Scripting.Core/Actions/ComDispatch/DispCallable.cs,
Line=129, Column=9, Type=Error, Priority=Normal, Description=The type `T' must
be a reference type in order to use it as type parameter `T' in the generic
type or method `Microsoft.Scripting.Actions.RuleBuilder<T>'.(CS0452)]

Expected Results:
The solution is fully built and compiled without any errors or warnings (as is
true in Visual Studio 2008/.NET Framework 2.0)

How often does this happen? 
Always.

Additional Information:

/* ****************************************************************************

 *

 * Copyright (c) Microsoft Corporation. 

 *

 * This source code is subject to terms and conditions of the Microsoft Public
License. A 

 * copy of the license can be found in the License.html file at the root of
this distribution. If 

 * you cannot locate the  Microsoft Public License, please send an email to 

 * dlr at microsoft.com. By using this source code in any fashion, you are
agreeing to be bound 

 * by the terms of the Microsoft Public License.

 *

 * You must not remove this notice, or any other, from this software.

 *

 *

 * ***************************************************************************/


Compiler Error #1 refers to the following code:

 RuleBuilder<T> IDynamicObject.GetRule<T>(DynamicAction action, CodeContext
context, object[] args) {

            switch (action.Kind) {

                case DynamicActionKind.GetMember: return
MakeGetMemberRule<T>((GetMemberAction)action, context);

                case DynamicActionKind.DoOperation: return
MakeDoOperationRule<T>((DoOperationAction)action, context);

            }

            return null;

        }

Compiler Error #2 refers to the following code:

RuleBuilder<T> IDynamicObject.GetRule<T>(DynamicAction action, CodeContext
context, object[] args) {

            switch (action.Kind) {

                case DynamicActionKind.Call: return
MakeCallRule<T>((CallAction)action, context, args);

                case DynamicActionKind.DoOperation: return
MakeDoOperationRule<T>((DoOperationAction)action, context, args);

            }

            return null;

        }

--
That is all the information I have so far.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list