2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / mbas / Test / errors / OverloadingC2.vb
1 REM LineNo: 6
2 REM ExpectedError: BC30345
3 REM ErrorMessage: 'Public Function f(ByRef i As Integer) As Object' and 'Public Function f(i1 As Integer) As Object' cannot overload each other because they differ only by parameters declared 'ByRef' or 'ByVal'.
4
5 Module OverloadingC2
6     Function f(ByRef i As Integer)
7     End Function
8
9     Function f(ByVal i1 As Integer)
10     End Function
11
12     Sub Main()
13     End Sub
14 End Module