• sdottaka's avatar
    Fix an error when calling a method implemented in C by super() with arguments.... · 820f6d14
    sdottaka authored
    Fix an error when calling a method implemented in C by super() with arguments. This fix makes the following code workable:
    
    Expected:
    
    class MRBTime < Time; def self.new; super(2012, 4, 21); end; end
    MRBTime.new # => Sat Apr 21 00:00:00 2012
    
    Actual:
    
    class MRBTime < Time; def self.new; super(2012, 4, 21); end; end
    MRBTime.new # => can't convert nil into Integer (TypeError)
    820f6d14
vm.c 60.2 KB