Add new error case
[mono.git] / mcs / btests / MustInheritC6.vb
1 REM LineNo: 18
2 REM ExpectedError: BC31408
3 REM ErrorMessage: 'Private' and 'MustOverride' cannot be combined.
4
5 REM LineNo: 19
6 REM ExpectedError: BC30188
7 REM ErrorMessage: Declaration expected.
8
9 REM LineNo: 20
10 REM ExpectedError: BC30430
11 REM ErrorMessage: 'End Function' must be preceded by a matching 'Function'.
12
13 Imports System
14
15 'Testing a mustoverride method with a method body
16
17 MustInherit Class C3
18     Private MustOverride Function F2() As Integer
19         Console.WriteLine("If you see this then there is something wrong!!!")
20     End Function
21 End Class
22
23 Module MustInheritTest
24         Sub Main()
25         End Sub
26 End Module
27