File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -5648,9 +5648,13 @@ void Resolver::exit(const Dot* dot) {
5648
5648
5649
5649
// Try to resolve a it as a field/parenless proc so we can resolve 'this' on
5650
5650
// it later if needed.
5651
+ // Special case: Don't try to resolve calls to array.domain here, as we
5652
+ // need to proceed to the handling logic below.
5651
5653
if (!receiver.type ().isUnknown () && receiver.type ().type () &&
5652
5654
receiver.type ().type ()->getCompositeType () &&
5653
- dot->field () != " init" ) {
5655
+ dot->field () != USTR (" init" ) &&
5656
+ !(receiver.type ().type ()->isArrayType () &&
5657
+ dot->field () == USTR (" domain" ))) {
5654
5658
std::vector<CallInfoActual> actuals;
5655
5659
actuals.push_back (CallInfoActual (receiver.type (), USTR (" this" )));
5656
5660
auto ci = CallInfo (/* name */ dot->field (),
You can’t perform that action at this time.
0 commit comments