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
/
LocalVariablesC1.vb
blob
70250a1b9da3b1121bfd03af477f08cf000d712f
1
REM LineNo: 12
2
REM ExpectedError: BC30616
3
REM ErrorMessage: Variable 'a' hides a variable in an enclosing block.
4
5
Imports System
6
7
Module
LocalVariablesC1
8
9
Function
f1
(
ByVal
a
As
Integer
)
As
Integer
10
11
Dim
b
As
Integer
=
10
12
For
a
As
Integer
=
0
to
10
13
Console
.
WriteLine
(
a
)
14
Next
15
Return
a
+
b
16
17
End Function
18
19
Sub
Main
()
20
f1
(
0
)
21
End Sub
22
23
End Module