berkesokhan / rubydotnetcompiler

Automatically exported from code.google.com/p/rubydotnetcompiler
1 stars 0 forks source link

Assignment to class variable should return new value #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Assigning to a cvar should return the value assigned, not nil.

  class C
    def m
      @@v = 1
    end
  end
  puts C.new.m

Expected: 1
Actual: nil

Original issue reported on code.google.com by sason...@gmail.com on 10 Aug 2007 at 7:08

GoogleCodeExporter commented 9 years ago
the simple fix is attached.

Original comment by art...@gmail.com on 24 Aug 2007 at 5:04

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by sason...@gmail.com on 6 Sep 2007 at 4:56

GoogleCodeExporter commented 9 years ago

Original comment by sason...@gmail.com on 6 Sep 2007 at 5:08

GoogleCodeExporter commented 9 years ago
I've committed the patch.

Original comment by art...@gmail.com on 11 Sep 2007 at 5:50