In .:
[mono.git] / mcs / mbas / Test / errors / MethodDeclarationC14.vb
1 'Author:
2 '   V. Sudharsan (vsudharsan@novell.com)
3 '
4 ' (C) 2005 Novell, Inc.
5
6 REM LineNo: 16\r
7 REM ExpectedError: BC31405\r
8 REM ErrorMessage: Optional parameters cannot have structure types.\r
9 \r
10 Imports System\r
11 \r
12 Module MethodDeclarationA\r
13         Structure A\r
14                 Dim i as Integer\r
15         End Structure\r
16         Sub A1(Optional ByVal i as A = 0)                       \r
17         End Sub\r
18         Sub Main()\r
19         End Sub\r
20 End Module\r
21