mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 08:41:06 +01:00
Handle identifier value category properly. (#986)
This commit is contained in:
@@ -118,6 +118,8 @@ class BindingPattern : public Pattern {
|
||||
auto type() const -> const Pattern& { return *type_; }
|
||||
auto type() -> Pattern& { return *type_; }
|
||||
|
||||
auto value_category() const -> ValueCategory { return ValueCategory::Var; }
|
||||
|
||||
private:
|
||||
std::optional<std::string> name_;
|
||||
Nonnull<Pattern*> type_;
|
||||
|
||||
Reference in New Issue
Block a user