可以为 null 的类型修饰符 (?) 包含在变量声明中的变量上,而数组修饰符(括号)包含在指定的变量类型上。 或者,可以为 null 的类型修饰符包含在变量声明中的指定变量类型上,而数组修饰符包含在变量上。
错误 ID: BC33102
更正此错误
- 在声明的变量或指定的变量类型上同时指定可以为 null 的类型修饰符 (?) 和数组修饰符(括号),如下面的示例所示。
' These are incorrect.
' Dim numbers? As Integer()
' Dim values() As Integer?
'These are correct.
Dim numbers?() As Integer
Dim values As Integer?()