Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
8fa02a2c
Commit
8fa02a2c
authored
Aug 13, 2013
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1470 from carsonmcdonald/morefixfor1467
Tests and another fix for issue #1467
parents
b50d6468
3385a33e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
6 deletions
+23
-6
src/vm.c
src/vm.c
+1
-6
test/t/module.rb
test/t/module.rb
+22
-0
No files found.
src/vm.c
View file @
8fa02a2c
...
...
@@ -897,12 +897,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
else
{
ci
->
argc
=
n
;
}
if
(
c
->
tt
==
MRB_TT_ICLASS
)
{
ci
->
target_class
=
c
->
c
;
}
else
{
ci
->
target_class
=
c
;
}
ci
->
target_class
=
c
;
ci
->
pc
=
pc
+
1
;
ci
->
acc
=
a
;
...
...
test/t/module.rb
View file @
8fa02a2c
...
...
@@ -481,3 +481,25 @@ assert('Module#inspect') do
assert_equal
'Test4to_sModules'
,
Test4to_sModules
.
inspect
end
assert
(
'Issue 1467'
)
do
module
M1
def
initialize
()
super
()
end
end
class
C1
include
M1
def
initialize
()
super
()
end
end
class
C2
include
M1
end
C1
.
new
C2
.
new
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment