**** Merged from MCS ****
[mono-project.git] / mcs / btests / OverloadingC3.vb
blob27b5f89bfb3e7586595197ded48a080693c1de6d
1 REM LineNo: 6
2 REM ExpectedError: BC30345
3 REM ErrorMessage: 'Public Function f(i As Integer) As Object' and 'Private Function f(ByRef i As Integer) As Object' cannot overload each other because they differ only by parameters declared 'ByRef' or 'ByVal'.
5 Module OverloadingC3
6 Public Function f(ByVal i As Integer)
7 End Function
9 Private Function f(ByRef i As Integer)
10 End Function
12 Sub Main()
13 End Sub
14 End Module