projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
In tests/expressions:
[mono.git]
/
mcs
/
mbas
/
Test
/
errors
/
ConstructorC7.vb
1
'Author:
2
' V. Sudharsan (vsudharsan@novell.com)
3
'
4
' (C) 2005 Novell, Inc.
5
6
REM LineNo: 20
\r
7
REM ExpectedError: BC30282
\r
8
REM ErrorMessage: Constructor call is valid only as the first statement in an instance constructor.
\r
9
\r
10
Imports System
\r
11
\r
12
Class A
\r
13
Sub New()
\r
14
End Sub
\r
15
End Class
\r
16
\r
17
Module Test
\r
18
Public Sub Main()
\r
19
Dim a as A = New A()
\r
20
a.New()
\r
21
End Sub
\r
22
End Module
\r
23
\r