Sha256: 5113a606c708a3cf0a0d6353da02404e93d801d92bcdf22665cc5ca7fa14b5a1

Contents?: true

Size: 412 Bytes

Versions: 347

Compression:

Stored size: 412 Bytes

Contents

# frozen_string_literal: true
# typed: true

module T::Types
  # The bottom type
  class NoReturn < Base

    def initialize; end

    # overrides Base
    def name
      "T.noreturn"
    end

    # overrides Base
    def valid?(obj)
      false
    end

    # overrides Base
    private def subtype_of_single?(other)
      true
    end

    module Private
      INSTANCE = NoReturn.new.freeze
    end
  end
end

Version data entries

347 entries across 347 versions & 2 rubygems

Version Path
sorbet-runtime-0.5.10780 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10773 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10771 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10767 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10761 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10754 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10751 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10746 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10741 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10736 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10735 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10731 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10722 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10712 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10710 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10707 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10705 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10696 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10693 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10690 lib/types/types/noreturn.rb