summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/string.c b/string.c
index 8a8835eca5..125599c24a 100644
--- a/string.c
+++ b/string.c
@@ -1242,6 +1242,7 @@ rb_string_value(volatile VALUE *ptr)
VALUE s = *ptr;
if (TYPE(s) != T_STRING) {
if (SYMBOL_P(s)) {
+ rb_warn("Implicit conversion from Symbol to String was introduced by mistake. This bug will be fixed in Ruby 1.9.2.");
s = rb_sym_to_s(s);
}
else {