H
Herfried K. Wagner [MVP]
* "Armin Zingler said:No, also error if a parameterized ctor is definied because f is declared as
an array.
Sorry, I missed that...
New Form 'create new form
New Form(10) 'create new form + call param. ctor
New Form(10){} 'create new form + call param. ctor + assign empty array
In the last line: Why should it call the ctor? The code below will
cause a compile time error because an array cannot be assigned to a
non-array variable:
\\\
Dim f As X
f = New X(10) {}
..
..
..
Public Class X
Public Sub New(ByVal i As Integer)
...
End Sub
End Class
///