These are chat archives for opal/opal

26th
Jun 2017
Colin Gunn
@balmoral
Jun 26 2017 01:29
Just found that a class which extends a module fails calling super on an override class method in Opal (master):
module Foo
  def foo
    puts  'foo'
  end
end

class Bar
  extend Foo
  def self.foo
    super
    puts 'bar'
  end
end

Bar.foo
=> $NoMethodError {name: "foo", message: "undefined method `foo' for #<Bar:0x3fe>”
Colin Gunn
@balmoral
Jun 26 2017 01:41
sorry, error is:
$NoMethodError {name: "foo", message: "super: no superclass method `foo' for Bar", args: Array(0), stack: "foo: super: no superclass method `foo' for Bar”}