mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 14:11:05 +01:00
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:
@@ -93,6 +93,7 @@ cc_library(
|
||||
name = "return_term",
|
||||
hdrs = ["return_term.h"],
|
||||
deps = [
|
||||
":expression",
|
||||
":source_location",
|
||||
"//common:check",
|
||||
"//common:ostream",
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user