lib/tapioca/compilers/symbol_table/symbol_generator.rb in tapioca-0.2.1 vs lib/tapioca/compilers/symbol_table/symbol_generator.rb in tapioca-0.2.2
- old
+ new
@@ -515,9 +515,10 @@
sig { params(constant: Module).returns(T::Boolean) }
def public_module?(constant)
constant_name = name_of(constant)
return false unless constant_name
+ return false if constant_name.start_with?('T::Private')
begin
# can't use !! here because the constant might override ! and mess with us
Module === eval(constant_name) # rubocop:disable Security/Eval
rescue NameError