pike.git/
src/
language.yacc
Branch:
Tag:
Non-build tags
All tags
No tags
2022-01-26
2022-01-26 13:43:21 by Henrik Grubbström (Grubba) <grubba@grubba.org>
0a7a048f7587de0daa24fbef51481cbcd3c54909 (
21
lines) (+
21
/-
0
)
[
Show
|
Annotate
]
Branch:
master
Compiler: Adjusted default function type.
1783:
push_type(T_OR); push_type(T_MANY);
+
+
if (!(THIS_COMPILATION->lex.pragmas & ID_STRICT_TYPES)) {
+
/* For type validation we also need this.
+
* Otherwise code like
+
*
+
* function foo;
+
* function(string:void) bar = foo;
+
*
+
* will fail.
+
*/
+
push_type(PIKE_T_UNKNOWN);
+
+
push_type(T_MIXED);
+
push_type(T_VOID);
+
push_type(T_OR);
+
+
push_type(T_MANY);
+
+
push_type(T_OR);
}
-
+
}
; function_type_list: /* Empty */ optional_comma { $$=0; }