Add new error case
[mono.git] / mcs / btests / RegionDirectivesC3.vb
1 REM LineNo: 21
2 REM ExpectedError: BC32025
3 REM ErrorMessage: '#Region' and '#End Region' statements are not valid within method bodies.
4
5 REM LineNo: 25
6 REM ExpectedError: BC30680
7 REM ErrorMessage: '#End Region' must be preceded by a matching '#Region'.
8
9 'Line 13, BC32025: '#Region' and '#End Region' directives cannot appear within method bodies
10 'Line 17, BC30680: '#End Region' directive must be preceded by a matching '#Region'
11
12
13 Imports System
14 Module RegionDirectives
15         Sub Main()
16
17
18         End Sub
19         
20         Sub S()
21         #Region "S"
22
23
24         End Sub
25         #End Region
26 End Module
27