**** Merged from MCS ****
[mono-project.git] / mcs / btests / PropertyC3.vb
blob522c976e55f91432acc4509dc66b1a1f79dd3495
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
14 End Property
16 Sub Main()
17 p = 10
18 Console.WriteLine(p)
19 End Sub
21 End Module