(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / btests / ArrayF.vb
blob6b615eed30280bad8d8114ea4a27b52f15e40162
1 Imports System
3 Module ArrayF
5 Sub Main()
6 Dim arr As Integer(,) = {{1, 2, 3}, {3, 4, 7}}
7 ReDim arr(1, 1)
8 If arr(0, 0) = 1 Then
9 Throw New Exception("#AF1 - ReDim Statement failed")
10 End If
12 arr(0, 0) = 1
13 arr(0, 1) = 2
14 If arr(0, 0) <> 1 Then
15 Throw New Exception("#AF2 - ReDim Statement failed")
16 End If
18 Try
19 Erase arr
20 Console.WriteLine(arr(0, 0))
21 Catch e As Exception
22 If e.GetType.ToString <> "System.NullReferenceException" Then
23 Throw New Exception("#AF3 - Erase Statement failed")
24 End If
25 End Try
27 End Sub
29 End Module