File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2730,6 +2730,12 @@ class InstanceVariableAttrInstanceVariable
27302730 @instance: Integer
27312731end
27322732
2733+ class ClassInstanceVariableSingletonAttrClassInstanceVariable
2734+ self.@class_instance: Integer
2735+ attr_accessor self.class_instance: Integer
2736+ self.@class_instance: Integer
2737+ end
2738+
27332739class ClassInstanceVariable
27342740 self.@class_instance: Integer
27352741 self.@class_instance: Integer
@@ -2756,6 +2762,9 @@ class ClassVariable
27562762 assert_raises ( RBS ::InstanceVariableDuplicationError ) do
27572763 builder . build_instance ( type_name ( "::InstanceVariableAttrInstanceVariable" ) )
27582764 end
2765+ assert_raises ( RBS ::ClassInstanceVariableDuplicationError ) do
2766+ builder . build_singleton ( type_name ( "::ClassInstanceVariableSingletonAttrClassInstanceVariable" ) )
2767+ end
27592768 assert_raises ( RBS ::ClassInstanceVariableDuplicationError ) do
27602769 builder . build_singleton ( type_name ( "::ClassInstanceVariable" ) )
27612770 end
You can’t perform that action at this time.
0 commit comments