Projects

Ticket #513: 513.rb

File 513.rb, 0.7 KB (added by emil@…, 18 months ago)

reduction

Line 
1module Foo
2  module Baz
3    def initialize(a, b)
4    end
5  end
6end
7
8module Foo
9  module Bar
10    module Baz
11      include Foo::Baz
12      def initialize(a, b, c, d)
13        super(a, b)
14      end
15    end
16  end
17end
18
19module Foo
20  module Bar
21    module Quux
22      include Baz
23    end
24  end
25end
26
27module Foo
28  module Bar
29    module Baz
30      class Bat
31        include Foo::Bar::Quux
32      end
33    end
34  end
35end
36
37
38=begin
39
40p Foo::Bar::Baz::Bat.new =>
41macruby: <Foo::Bar::Baz::Bat:0x200061540>
421.9.2: in `initialize': wrong number of arguments (0 for 4) (ArgumentError)
43
44
45p Foo::Bar::Baz::Bat.new(nil, nil, nil, nil) =>
46macruby: in `<main>': wrong number of arguments (4 for 2) (ArgumentError)
471.9.2: <Foo::Bar::Baz::Bat:0x00000100869c18>
48
49
50=end
51
52