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
**** Merged from MCS ****
[mono-project.git]
/
mcs
/
mbas
/
Test
/
tests
/
MustInheritA.vb
blob
d91b39a9bb7420bb7d0d556f3e3a1a2dbf3bd694
1
'Testing MustInherit classes with MustOverride methods that do not return a value
2
3
MustInherit Class C1
4
Public Function
F1
()
5
Dim
a
As
Integer
=
10
6
End Function
7
Public
MustOverride
Function
F2
()
8
End
Class
9
10
Class C2
11
Inherits C1
12
Public
Overrides
Function
F2
()
13
End Function
14
End
Class
15
16
Module
Module1
17
Sub
Main
()
18
Dim
x
As
C1
=
Nothing
19
x
=
New
C2
()
20
End Sub
21
End Module