pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2022-03-26
2022-03-26 20:39:44 by Martin Nilsson <nilsson@fastmail.com>
11bea583a49baefda681d4fd595978874fce3905 (
17
lines) (+
9
/-
8
)
[
Show
|
Annotate
]
Branch:
master
Compare with types as they are so we don't miss masked out errors.
901:
"int") test_any([[mapping(object:string)|mapping(string:int) f;
-
return sprintf("%O", typeof(f[class{}()])
& ~typeof(0
)
)
; ]],
-
"string")
+
return sprintf("%O", typeof(f[class{}()])); ]],
+
"
zero |
string")
test_any([[mapping(object:string)|mapping(string:int) f; return sprintf("%O", typeof(f[""])); ]],
914:
test_any([[class Foo { protected string `[](mixed y) {return "";} }; object(Foo) foo;
-
return sprintf("%O", typeof(foo[0])
& ~typeof(0
)
)
; ]],
-
"string")
+
return sprintf("%O", typeof(foo[0])); ]],
+
"
zero |
string")
test_any([[class Foo { protected array(int) _indices() {return ({0});} }; object(Foo) foo;
-
return sprintf("%O", typeof(indices(foo))
& ~typeof(0
)
)
; ]],
-
"array(int)")
+
return sprintf("%O", typeof(indices(foo))); ]],
+
"
zero |
array(int)")
test_any([[class Foo { protected array(string) _values() {return ({""});} }; object(Foo) foo;
-
return sprintf("%O", typeof(values(foo))
& ~typeof(0
)
)
; ]],
-
"array(string)")
+
return sprintf("%O", typeof(values(foo))); ]],
+
"
zero |
array(string)")
test_any([[mapping(string:int) foo; array(string) bar;