Sha256: 3f486906dce58086bc4c14d5d7c2823bc205bc97d274823fd2673117e1f3d537

Contents?: true

Size: 411 Bytes

Versions: 167

Compression:

Stored size: 411 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

167 entries across 161 versions & 2 rubygems

Version Path
sorbet-runtime-0.5.10987 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10985 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10984 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10983 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10981 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10978 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10974 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10972 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10969 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10965 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10962 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10958 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10957 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10953 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10952 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10950 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10948 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10946 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10941 lib/types/types/noreturn.rb
sorbet-runtime-0.5.10940 lib/types/types/noreturn.rb