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
study_line-0.1.3 vendor/bundle/ruby/3.2.0/gems/sorbet-runtime-0.5.11104/lib/types/types/noreturn.rb
study_line-0.1.2 vendor/bundle/ruby/3.2.0/gems/sorbet-runtime-0.5.11108/lib/types/types/noreturn.rb
study_line-0.1.2 vendor/bundle/ruby/3.2.0/gems/sorbet-runtime-0.5.11104/lib/types/types/noreturn.rb
study_line-0.1.1 vendor/bundle/ruby/3.2.0/gems/sorbet-runtime-0.5.11104/lib/types/types/noreturn.rb
study_line-0.1.1 vendor/bundle/ruby/3.2.0/gems/sorbet-runtime-0.5.11108/lib/types/types/noreturn.rb
sorbet-runtime-0.5.11145 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11144 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11143 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11142 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11141 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11139 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11132 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11128 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11122 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11120 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11119 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11116 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11114 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11109 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11108 lib/types/types/noreturn.rb