mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 21:00:31 +00: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:
1 parent
4f0c8786b0
commit
066bf10df3
2 files changed
+2
-1
No files matched your search
@@ -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