summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
Diffstat (limited to 'sample')
-rw-r--r--sample/test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/sample/test.rb b/sample/test.rb
index 82b159a7b7..1f6b140951 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -1351,6 +1351,17 @@ atlas = Titans.new
test_ok(atlas.ruler0 == "Cronus")
test_ok(atlas.ruler3 == "Zeus")
+class <<a="a"
+ def foo=(n)
+ @@cv=n
+ end
+ def foo
+ @@cv
+ end
+end
+a.foo=5
+test_ok(a.foo == 5)
+
test_check "trace"
$x = 1234
$y = 0