Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4174
Reported by Andrew Shirrayev, andrews@gate.ort.spb.ru
~$ pike7.2
Pike v7.2 release 580 running Hilfe v2.0 (Incremental Pike Frontend)
> (Stdio.stdout << "BAR!\n") << "FOO!\n";
BAR!
FOO!
Result: object
Terminal closed.
~$ pike7.6
Pike v7.6 release 75 running Hilfe v3.5 (Incremental Pike Frontend)
> (Stdio.stdout << "BAR!\n") << "FOO!\n";
Compiler Error: 1:Bad argument 2 to `<<.
Compiler Error: 1:Expected: !function(!object ... : mixed) &
(function(mixed, object : mixed) | function(object, mixed : mixed)) |
function(int, int : int)
Compiler Error: 1:Got : function(mixed, string : void | mixed)
Terminal closed.