aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-06-29 12:11:50 +0100
committerGinger Bill <bill@gingerbill.org>2017-06-29 12:11:50 +0100
commitd167290b280c2dfcb764ff1e8f48df975444962d (patch)
treebdf9d5576b36569c2b79de345c4a5ec5b5316c4d /src/check_decl.cpp
parentf4879d472360984f2868c406be96a4f3b473bfa4 (diff)
Make `AstNodeIdent` a struct wrapping its `Token`
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index 2cb95949c..77f1c2cd7 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -291,7 +291,7 @@ void init_entity_foreign_library(Checker *c, Entity *e) {
} else if (ident->kind != AstNode_Ident) {
error(ident, "foreign library names must be an identifier");
} else {
- String name = ident->Ident.string;
+ String name = ident->Ident.token.string;
Entity *found = scope_lookup_entity(c->context.scope, name);
if (found == NULL) {
if (name == "_") {