class RBS::InstanceVariableDuplicationError::ClassInstanceVariableDuplicationError::TypeParamDefaultReferenceError
Attributes
Public Class Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/errors.rb, line 616 def self.check!(type_params) if errors = AST::TypeParam.validate(type_params) error = errors[0] or raise error.default_type or raise raise new(error, location: error.default_type.location) end end
Source
# File bundled-src/rbs-3.10.0/lib/rbs/errors.rb, line 610 def initialize(type_param, location:) super "#{Location.to_string(location)}: the default of #{type_param.name} cannot include optional type parameter" @location = location @type_param = type_param end
Calls superclass method
Exception::new