Fix return_term dep on Expression (#1091)

Line 91 has:
```
        source_loc_(type_expression->source_loc()) {}
```

Which requires the Expression definition. This probably compiles accidentally due to #include ordering, but I ran into a case that needs correct #includes.
This commit is contained in:
Jon Meow
2022-02-18 16:35:39 -08:00
committed by GitHub
parent 4f0c8786b0
commit 066bf10df3
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -93,6 +93,7 @@ cc_library(
name = "return_term",
hdrs = ["return_term.h"],
deps = [
":expression",
":source_location",
"//common:check",
"//common:ostream",
+1 -1
View File
@@ -10,13 +10,13 @@
#include "common/check.h"
#include "common/ostream.h"
#include "executable_semantics/ast/expression.h"
#include "executable_semantics/ast/source_location.h"
#include "executable_semantics/common/nonnull.h"
namespace Carbon {
class Value;
class Expression;
// The syntactic representation of a function declaration's return type.
// This syntax can take one of three forms: