pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2015-03-22
2015-03-22 16:07:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>
d2335f76d4028fb2a6a46492060a349b1b1c73b0 (
11
lines) (+
6
/-
5
)
[
Show
|
Annotate
]
Branch:
8.0
Fixed fall-out from warning about the symbol 'const'.
323:
// Check that parent pointers aren't added unnecessarily [LysLysKOM 18781511]. class Foo {
-
final constant const = 1;
+
final constant const
_val
= 1;
class Bar { int func() {
-
// parent-pointer not needed, since const is final.
-
return const;
+
// parent-pointer not needed, since const
_val
is final.
+
return const
_val
;
}; } };
2928:
test_do([[ // Restore constants that were zapped by the various masters used above.
-
foreach(__saved_constants__; string const; mixed val) {
-
add_constant(const, val);
+
foreach(__saved_constants__; string const
_name
; mixed val) {
+
add_constant(const
_name
, val);
} add_constant("__saved_constants__"); ]])