aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-04 23:52:00 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-04 23:52:00 +0100
commit3d2d46186751c67c4239479bcbe4908dff61ecd4 (patch)
treeaed081304af19ffd4bc2a5c5f71adaa0fe423941 /src/types.cpp
parent36392d658e710dce8be276bcc1d379d5328a0291 (diff)
Replace many built-in procedures with user-level procedures
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 98aa1e73e..294e17cd8 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -919,6 +919,9 @@ bool is_type_untyped_undef(Type *t) {
bool is_type_valid_for_keys(Type *t) {
t = core_type(t);
+ if (t->kind == Type_Generic) {
+ return true;
+ }
if (is_type_untyped(t)) {
return false;
}