The type of a string slice is the type of the string being sliced.

From-SVN: r168775
This commit is contained in:
Ian Lance Taylor 2011-01-14 05:37:12 +00:00
parent 3dac68b99e
commit 82afdd42e2
1 changed files with 1 additions and 1 deletions

View File

@ -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.