A
Armin Zingler
Hi folks,
sending a sign of life here....:
MustInherit Class Base(Of T)
Protected Class Inner
End Class
Protected MustOverride Function func(ByVal par As T) As Inner
End Class
Class Inherited
Inherits Base(Of Integer)
Protected Overrides Function func(ByVal par As Integer) As Base(Of Integer).Inner '<<<<<< ERROR
End Function
End Class
The error message at the declaration of Function 'func' in class 'Inherited' says:
'Base(Of T).Inner' is not accessible in this context because it is 'Protected'
Right, the Class "Inner" is Protected. But the code is in a derived class,
and function 'func' is also protected. Therefore it should work, so why the
error? Note that the declaration is created automatically by pressing the
Enter key at the end of the "Inherits" line.
sending a sign of life here....:
MustInherit Class Base(Of T)
Protected Class Inner
End Class
Protected MustOverride Function func(ByVal par As T) As Inner
End Class
Class Inherited
Inherits Base(Of Integer)
Protected Overrides Function func(ByVal par As Integer) As Base(Of Integer).Inner '<<<<<< ERROR
End Function
End Class
The error message at the declaration of Function 'func' in class 'Inherited' says:
'Base(Of T).Inner' is not accessible in this context because it is 'Protected'
Right, the Class "Inner" is Protected. But the code is in a derived class,
and function 'func' is also protected. Therefore it should work, so why the
error? Note that the declaration is created automatically by pressing the
Enter key at the end of the "Inherits" line.