pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
1999-11-24
1999-11-24 18:17:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>
f2e6a49a4663f38eb6b55eb76e1ad0f5f1da6ef3 (
9
lines) (+
8
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Some more typeof() tests.
Rev: src/testsuite.in:1.237
1:
-
test_true([["$Id: testsuite.in,v 1.
236
1999/11/24
16
:
31
:
41
grubba Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
237
1999/11/24
18
:
17
:
25
grubba Exp $"]]);
cond([[all_constants()->_verify_internals]], [[
66:
array(object(foo)) bar; return typeof(bar[0]->a);]], "string");
+
test_any([[function(:string)|function(int:int) f; return typeof(f()); ]],
+
"string")
+
+
test_any([[function(:string)|function(int:int) f; return typeof(f(1)); ]],
+
"int")
+
test_any([[return class Z { string bonk() { return "oiff"; }