Skip to content

::Test.new creates Object instead of Test class instance #6636

Description

@buty4649

When creating an instance using ::Test.new, mruby incorrectly creates an Object instance instead of a Test class instance.

Expected Behavior

::Test.new should create an instance of the Test class.

Actual Behavior

::Test.new creates an Object instance instead.

Reproduction Steps

class Test
end

::Test.new.class #=> Object
Test.new.class #=> Test

Notes

This issue reproduces from commit 528e793 to HEAD (0109198).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions