pike.git/
src/
pike_types.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2021-03-11
2021-03-11 18:09:57 by Henrik Grubbström (Grubba) <grubba@grubba.org>
18e470a856d8987a8075b8c1a3d00c1d48bfd76e (
15
lines) (+
11
/-
4
)
[
Show
|
Annotate
]
Branch:
master
Compiler
[Typechecker]
: Fix indexing of __unknown__.
9140:
return zero_type_string; }
-
while((t->type == PIKE_T_NAME) ||
+
while(
t &&
+
(
(
t->type == PIKE_T_NAME) ||
(t->type == PIKE_T_ATTRIBUTE) || (t->type == T_ASSIGN) ||
-
(t->type == T_SCOPE)) {
+
(t->type == T_SCOPE))
)
{
t = t->cdr; }
-
+
if (!t) {
+
add_ref(mixed_type_string);
+
return mixed_type_string;
+
}
while((index_type->type == PIKE_T_NAME) || (index_type->type == PIKE_T_ATTRIBUTE) || (index_type->type == T_ASSIGN) ||
9684:
struct pike_type *index_type, node *n) {
+
if (!type) return 1;
switch(type->type) { case T_OR: