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
/
btests
/
MustInheritC1.vb
blob
c8ed0c0b8bef0bd454bd39ffc7fc74e881c44535
1
REM LineNo: 15
2
REM ExpectedError: BC30376
3
REM ErrorMessage: 'New' cannot be used on class 'C1' because it contains a 'MustOverride' member that has not been overridden.
4
5
MustInherit Class C1
6
Public Function
F1
()
7
Dim
a
As
Integer
=
10
8
End Function
9
10
Public
MustOverride
Function
F2
()
11
End
Class
12
13
Module
MustInheritC1
14
Sub
Main
()
15
Dim
x
As
C1
=
New
C1
()
16
End Sub
17
End Module