2 REM ExpectedError: BC30667
3 REM ErrorMessage: ParamArray parameters must be declared 'ByVal'.
5 '=============================================================================================
6 'Name:Manish Kumar Sinha
7 'Email Address: manishkumarsinha@sify.com
8 'Test Case Name: Param Array:
9 'APR-1.1.1:If ParamArray modifier is precied by ByRef modifier the it produces compiler error
10 '=============================================================================================
13 Sub F(ParamArray ByRef args() As Integer)
17 Throw New System.Exception("#A1, Unexcepted behavoiur of PARAM ARRAY")
22 Dim a As Integer() = { 1, 2, 3 }
27 '================================================================================