(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / mbas / Test / tests / EnumB.vb
blob9a15b72734119a84f354b8dbd6c298aa6444e058
1 Imports System
3 Module M
4 Enum E
7 End Enum
9 Sub InInt(ByVal i As Integer)
10 End Sub
12 Sub InLong(ByVal i As Long)
13 End Sub
15 Sub InEnum(ByVal e As E)
16 End Sub
18 Sub Main
19 Dim e1 As E
21 e1 = E.A
22 If e1.GetType().ToString() <> GetType(E).ToString() Then
23 Throw New Exception("#A1: wrong type")
24 End If
25 If E.A.GetType().ToString() <> GetType(E).ToString() Then
26 Throw New Exception("#A2: wrong type")
27 End If
28 Dim e2 As E
29 e2 = e1
30 Dim i As Integer
31 i = e2
32 InInt(e2)
33 InInt(E.B)
34 InLong(e2)
35 InLong(E.B)
36 InEnum(e2)
37 InEnum(0)
38 End Sub
39 End Module