repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2004-11-07 Ben Maurer <bmaurer@ximian.com>
[mono-project.git]
/
mcs
/
btests
/
PropertyC4.vb
blob
bc7f89f3d1ec65aadf0989ae3dbf1874e9072119
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'.
4
5
Imports system
6
7
Module
M
8
private
i
as
integer
9
10
public Property
p
()
as
Integer
11
'GET
12
' return i
13
'END GET
14
15
SET
(
ByVal
val
as
Integer
)
16
i
=
val
17
End SET
18
End Property
19
20
Sub
Main
()
21
End Sub
22
23
End Module