Copied remotely
[mono.git] / mcs / mbas / Test / errors / OverloadingC4.vb
1 REM LineNo: 6
2 REM ExpectedError: BC30300
3 REM ErrorMessage: 'Public Function f(ByRef i As Integer) As Object' and 'Public Function f(ByRef i1 As Integer, [i2 As Integer = 5]) As Object' cannot overload each other because they differ only by optional parameters.
4
5 Module OverloadingC2
6     Function f(ByRef i As Integer)
7     End Function
8
9     Function f(ByRef i1 As Integer, Optional ByVal i2 As Integer = 5)
10     End Function
11
12     Sub Main()
13     End Sub
14 End Module