[Mono-bugs] [Bug 340463] New: global:: qualifier does not work with generic types

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 9 02:03:40 EST 2007


           Summary: global:: qualifier does not work with generic types
           Product: Mono: Compilers
           Version: 1.2
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: michi at zeroc.com
         QAContact: mono-bugs at ximian.com
          Found By: Customer

gmcs complains about a syntax error on line 14 in the code below. The same code
compiles fine with Visual Studio.

class NonGeneric {}
class Generic<T> {}

class m

    public global::NonGeneric
    compiles_fine(global::NonGeneric i, out global::NonGeneric o)
        o = new global::NonGeneric();
        return new global::NonGeneric();

    public global::Generic<int>
    does_not_compile(global::Generic<int> i, out global::Generic<int> o)
        o = new global::Generic<int>();
        return new global::Generic<int>();

Note that "global::" works for the non-generic class, but doesn't work with the
generic class.



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