class RBS::CyclicTypeParameterBound
Attributes
location
[R]
Location[untyped, untyped]?
Method name
params
[R]
Array[AST::TypeParam]
Array of parameters which contains cyclic dependencies.
Type name
Public Class Methods
(type_name: TypeName, method_name: Symbol?, params: Array[AST::TypeParam], location: Location[untyped, untyped]?) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/errors.rb, line 564 def initialize(type_name:, method_name:, params:, location:) @type_name = type_name @method_name = method_name @params = params @location = location super "#{Location.to_string(location)}: Cyclic type parameter bound is prohibited" end
Calls superclass method
Exception::new