[Mono-bugs] [Bug 444995] System.Array.Resize not implemented?

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jan 26 14:39:53 EST 2009


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

User andyhume32 at yahoo.co.uk added comment
https://bugzilla.novell.com/show_bug.cgi?id=444995#c5





--- Comment #5 from Andy Hume <andyhume32 at yahoo.co.uk>  2009-01-26 12:39:52 MST ---
This is a general fault in VBNC in that it needs the generic types to be
supplied for calls to generic static methods (etc?).  See the example below and
the resultant error messages.

[[
Class Bug444995AndyH
    Shared Sub Main(args() as String)
       Dim x(5) As Integer
       '
#if Not SkipVbncFailures
       Array.Resize(x, 10)
       Aaaa.One(1)
       Aaaa.Arr(x)
#end if
       ' This works: explicit type arguments
       ' (line: 11)
       Array.Resize(Of Integer)(x, 10)
       Aaaa.One(Of Integer)(1)
       Aaaa.Arr(Of Integer)(x)
    End Sub
End Class


Class Aaaa
    Shared Sub One(Of T)(p As T)
    End Sub

    Shared Sub Arr(Of T)(p As T())
    End Sub
End Class
]]

[[
Visual Basic.Net Compiler version 0.0.0.5904 (Mono 2.0 - r)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.


Bug444995a.vb (6,14) : Error VBNC99999: Could not resolve name
'Resize',Bug444995a.vb (6,14)
Bug444995a.vb (6,14) : Error VBNC30456: 'Resize' is not a member of 'Array'.
Bug444995a.vb (7,13) : Error VBNC99999: Could not resolve name
'One',Bug444995a.vb (7,13)
Bug444995a.vb (7,13) : Error VBNC30456: 'One' is not a member of 'Aaaa'.
Bug444995a.vb (8,13) : Error VBNC99999: Could not resolve name
'Arr',Bug444995a.vb (8,13)
Bug444995a.vb (8,13) : Error VBNC30456: 'Arr' is not a member of 'Aaaa'.
There were 6 errors and 0 warnings.
Compilation took 00:00:14.0150000
]]
(BTW note the duplicate filename in the "Could not resolve name" message).

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


More information about the mono-bugs mailing list