diff --git a/lib/tapioca/runtime/reflection.rb b/lib/tapioca/runtime/reflection.rb index 530b57a768..bee57c5429 100644 --- a/lib/tapioca/runtime/reflection.rb +++ b/lib/tapioca/runtime/reflection.rb @@ -32,7 +32,10 @@ module Reflection METHOD_METHOD = T.let(Kernel.instance_method(:method), UnboundMethod) UNDEFINED_CONSTANT = T.let(Module.new.freeze, Module) - REQUIRED_FROM_LABELS = T.let(["", "
"].freeze, T::Array[String]) + REQUIRED_FROM_LABELS = T.let( + ["block in ", "", "
"].freeze, + T::Array[String], + ) T::Sig::WithoutRuntime.sig { params(constant: BasicObject).returns(T::Boolean) } def constant_defined?(constant)