2005-04-04 Ritvik Mayank <mritvik@novell.com>
[mono.git] / mcs / mbas / Test / errors / PropertyC11.vb
1 REM LineNo: 9
2 REM ExpectedError: BC31088
3 REM ErrorMessage: 'NotOverridable' cannot be specified for methods that do not override another method.\r
4
5 Class C1
6         'property that do not override any other
7         'property should not be declared 'notoverridable'
8
9         Public NotOverridable Property p() as Integer
10                 GET
11                 END GET
12
13                 SET (val as Integer)
14                 End SET
15         End Property
16
17 End Class
18 Module OverrideC2
19         Sub Main()
20         End Sub
21 End Module