Branch: Tag:

2000-03-10

2000-03-10 00:45:19 by Henrik Grubbström (Grubba) <grubba@grubba.org>

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"]);