Project

General

Profile

Backport #3342 ยป bug.rb

toy exemple to reproduce the bug - frihd (Lucas DiCioccio), 05/25/2010 10:41 PM

 
1

    
2
class A
3
  attr_writer :b
4
  alias :c :b=
5
end
6

    
7
A.new.b = :foo #=> OK
8
A.new.c :foo #=> OK
9
A.new.b = :foo, :bar #=> OK
10
A.new.c :foo, :bar #=> KO
11