2 REM ExpectedError: BC40004
3 REM ErrorMessage: function 'F' conflicts with function 'F' in the base class 'B' and so should be declared 'Shadows'.
5 ' As per MS VB Specification (section 4.3.3)
6 ' this program should compile.
7 ' But MS VB compiler 7.0 is unable to compile it.
8 ' Still I am keeping this in positive test cases
9 ' May move it later to negative tests section
10 ' after clarifying it with later versions of MS VB compilers.
12 ' In derived class if you
13 ' override a method whithout
14 ' shadowing or overloading should get shadowed
15 ' in the derived class by default
16 ' But it should throw an warning during compilation
23 Function F(ByVal i As Integer)