summaryrefslogtreecommitdiff
path: root/spec/ruby/core/module/fixtures/autoload_const_source_location.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/module/fixtures/autoload_const_source_location.rb')
-rw-r--r--spec/ruby/core/module/fixtures/autoload_const_source_location.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/ruby/core/module/fixtures/autoload_const_source_location.rb b/spec/ruby/core/module/fixtures/autoload_const_source_location.rb
new file mode 100644
index 0000000000..ee0e5a689f
--- /dev/null
+++ b/spec/ruby/core/module/fixtures/autoload_const_source_location.rb
@@ -0,0 +1,6 @@
+module ConstantSpecs
+ BEFORE_DEFINE_LOCATION = const_source_location(:ConstSource)
+ module ConstSource
+ LOCATION = Object.const_source_location(name)
+ end
+end