Sha256: df50a908570709a97a1138b77a1208a6efbe2696a1e2798499b98df21e83cdb9

Contents?: true

Size: 1.38 KB

Versions: 20

Compression:

Stored size: 1.38 KB

Contents

module RBS
  module Test
    module Errors
      type t = ArgumentTypeError | BlockArgumentError | ArgumentError | BlockArgumentError | ReturnTypeError | BlockReturnTypeError
             | UnexpectedBlockError | MissingBlockError | UnresolvedOverloadingError

      # Type of a argument value given to a method call is not compatible with the type from method type
      class ArgumentTypeError
      end

      # Type of a argument value given to a block yield is not compatible with the type from method type
      class BlockArgumentTypeError
      end

      # Incompatible number of args/keyword args is given to a method call
      class ArgumentError
      end

      # Incompatible number of args is given to a block yield
      class BlockArgumentError
      end

      # Type of return value from a method call is incompatible
      class ReturnTypeError
      end

      # Type of return value from a block yield is incompatible
      class BlockReturnTypeError
      end

      # Unexpected block is given
      class UnexpectedBlockError
      end

      # Required block is missing
      class MissingBlockError
      end

      # Any other error
      class UnresolvedOverloadingError
      end

      def self.format_param: (Types::Function::Param) -> String

      RESPOND_TO: UnboundMethod

      def self.inspect_: (untyped) -> String

      def self.to_string: (t) -> String
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rbs-3.7.0.dev.1 sig/test/errors.rbs
rbs-3.6.1 sig/test/errors.rbs
rbs-3.6.0 sig/test/errors.rbs
rbs-3.6.0.pre.3 sig/test/errors.rbs
rbs-3.6.0.pre.2 sig/test/errors.rbs
rbs-3.6.0.pre.1 sig/test/errors.rbs
rbs-3.6.0.dev.1 sig/test/errors.rbs
rbs-3.5.3 sig/test/errors.rbs
rbs-3.5.2 sig/test/errors.rbs
rbs-3.5.1 sig/test/errors.rbs
rbs-3.5.1.pre.1 sig/test/errors.rbs
rbs-3.5.0 sig/test/errors.rbs
rbs-3.5.0.pre.2 sig/test/errors.rbs
rbs-3.5.0.pre.1 sig/test/errors.rbs
rbs-3.4.4 sig/test/errors.rbs
rbs-3.4.3 sig/test/errors.rbs
rbs-3.4.2 sig/test/errors.rbs
rbs-3.4.1 sig/test/errors.rbs
rbs-3.4.0 sig/test/errors.rbs
rbs-3.4.0.pre.1 sig/test/errors.rbs