8 Function F(Optional i
As Integer = 42) As Integer
11 Function F2(ByVal Optional i
As Integer = 42) As Integer
14 Function G(i
As Integer, Optional j
As Integer = 42) As Integer
17 Function G(e
As E
) As Integer
20 Function H(i
As Integer, Optional j
As Integer = 42, Optional k
As Integer = 3) As Integer
23 Function K(ByRef Optional i
As Integer = 3) As Integer
29 Throw
New Exception("#A1: unexpected return value")
32 Throw
New Exception("#A2: unexpected return value")
35 Throw
New Exception("#A3: unexpected return value")
38 Throw
New Exception("#A4: unexpected return value")
41 Throw
New Exception("#A5: unexpected return value")
43 If G(1,99) <> 100 Then
44 Throw
New Exception("#A6: unexpected return value")
46 If G(E
.A
,99) <> 99 Then
47 Throw
New Exception("#A7: unexpected return value")
50 Throw
New Exception("#A8: unexpected return value")
53 Throw
New Exception("#A9: unexpected return value")
56 Throw
New Exception("#A10: unexpected return value")
59 Throw
New Exception("#A11: unexpected return value")
62 If K(i
) <> 9 OrElse i
<> 12 Then
63 Throw
New Exception("#A12: unexpected return value")