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
/
mbas
/
Test
/
errors
/
LocalVariablesC2.vb
blob
28e308777cb20caeebf38e13d5e96ab5dbc2e3be
1
REM LineNo: 10
2
REM ExpectedError: BC30290
3
REM ErrorMessage: Local variable cannot have the same name as the function containing it.
4
5
Imports System
6
7
Module
LocalVariablesC2
8
9
Function
f1
(
ByVal
a
As
Integer
)
As
Integer
10
Dim
f1
As
Integer
=
10
11
f1
=
f1
+
a
12
End Function
13
14
Sub
Main
()
15
Console
.
WriteLine
(
f1
(
0
))
16
End Sub
17
18
End Module