2004-11-07 Ben Maurer <bmaurer@ximian.com>
[mono-project.git] / mcs / btests / PropertyC4.vb
blobbc7f89f3d1ec65aadf0989ae3dbf1874e9072119
1 REM LineNo: 10
2 REM ExpectedError: BC30124
3 REM ErrorMessage: Property without a 'ReadOnly' or 'WriteOnly' specifier must provide both a 'Get' and a 'Set'.
5 Imports system
7 Module M
8 private i as integer
10 public Property p() as Integer
11 'GET
12 ' return i
13 'END GET
15 SET (ByVal val as Integer)
16 i = val
17 End SET
18 End Property
20 Sub Main()
21 End Sub
23 End Module