Skip to content

Raise TypeError if module_function is not called for modules#4927

Merged
enebo merged 1 commit intojruby:masterfrom
yui-knk:test_module_function
Jan 2, 2018
Merged

Raise TypeError if module_function is not called for modules#4927
enebo merged 1 commit intojruby:masterfrom
yui-knk:test_module_function

Conversation

@yui-knk
Copy link
Contributor

@yui-knk yui-knk commented Dec 31, 2017

For example, these code calls module_function for Class:

Module.instance_method(:module_function).bind(Class.new).call(:foo)

This commit will fix TestClass#test_module_function.

For example, these code calls module_function for Class:

```
Module.instance_method(:module_function).bind(Class.new).call(:foo)
```

This commit will fix `TestClass#test_module_function`.
@enebo enebo added this to the JRuby 9.2.0.0 milestone Jan 2, 2018
@enebo enebo merged commit 7c77dbb into jruby:master Jan 2, 2018
@yui-knk yui-knk deleted the test_module_function branch January 2, 2018 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants