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