The type of a string slice is the type of the string being sliced.
From-SVN: r168775
This commit is contained in:
parent
3dac68b99e
commit
82afdd42e2
|
@ -9541,7 +9541,7 @@ String_index_expression::do_type()
|
|||
if (this->end_ == NULL)
|
||||
return Type::lookup_integer_type("uint8");
|
||||
else
|
||||
return Type::make_string_type();
|
||||
return this->string_->type();
|
||||
}
|
||||
|
||||
// Determine the type of a string index.
|
||||
|
|
Loading…
Reference in New Issue