pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2000-03-10
2000-03-10 00:45:19 by Henrik Grubbström (Grubba) <grubba@grubba.org>
644730362c668dc97ff2e8530403deae93fe7cee (
12
lines) (+
11
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added another test of the type inference system.
Rev: src/testsuite.in:1.286
1:
dnl -*- Pike -*-
-
test_true([["$Id: testsuite.in,v 1.
285
2000/03/
09
21
:
11
:
37
grubba Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
286
2000/03/
10
00
:
45
:
19
grubba Exp $"]]);
cond([[all_constants()->_verify_internals]], [[
115:
return typeof(rows(foo, bar)); ]], "array(int)")
+
test_any([[
+
class Foo {
+
constant zero = 0;
+
mapping(string:array(int)) m;
+
string foo() { return typeof(m[""][zero]); }
+
};
+
return Foo()->foo();
+
]], "int")
+
test_compile_any([[ constant FOO = 0; mapping(int:string) foo = ([FOO: "foo"]);