Switch static_type to return Expression& (#887)

This commit is contained in:
Jon Meow
2021-10-14 14:31:06 -07:00
committed by GitHub
parent 52096e4299
commit 924259986a
4 changed files with 41 additions and 41 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ class Pattern {
auto source_loc() const -> SourceLocation { return source_loc_; }
// The static type of this pattern. Cannot be called before typechecking.
auto static_type() const -> Nonnull<const Value*> { return *static_type_; }
auto static_type() const -> const Value& { return **static_type_; }
// Sets the static type of this expression. Can only be called once, during
// typechecking.