diff options
| author | gingerBill <bill@gingerbill.org> | 2018-05-12 10:27:55 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-05-12 10:27:55 +0100 |
| commit | 18a9fa735503e96d69efd968c542e490abe69be0 (patch) | |
| tree | 743b79bc4aed7e78de744a5772a6bb0a06ab07b9 /src/check_type.cpp | |
| parent | b32af841c56b1bc530b13bd2c6ad55547b4ef021 (diff) | |
Improve minimal dependency system
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index c3ee0a51a..35953d7bb 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1827,6 +1827,10 @@ void check_map_type(Checker *c, Type *type, AstNode *node) { type->Map.key = key; type->Map.value = value; + if (is_type_string(key)) { + add_preload_dependency(c, "__default_hash_string"); + } + init_preload(c); init_map_internal_types(type); |