mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 09:59:25 +00:00
make variable arity parameters an array type
This commit is contained in:
@@ -251,6 +251,10 @@ class SourceParameter extends Parameter {
|
||||
}
|
||||
|
||||
get type() {
|
||||
if (this.varargs) {
|
||||
// variable arity parameters are automatically an array type
|
||||
return new ArrayType(this._paramType.resolved, 1);
|
||||
}
|
||||
return this._paramType.resolved;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user