./ruby/test/strangeness1.rb

download original
# class C1

#   def initialize(sizes)
#     @sizes = sizes
#   end

#   def netdim
#     @sizes
#   end

# end


# class C1

#   def initialize(sizes)
#     @sizes = sizes
#   end

#   def netdim
#     sizes
#   end

# end


# class C1

#   def initialize(x)
#     @x = x
#   end

#   def test
#     x
#   end

# end

# class C2

#   def initialize(x)
# #    @x = x
#   end

#   def test
#     x
#   end

# end


  
back to test

(C) 1998-2017 Olaf Klischat <olaf.klischat@gmail.com>