Sha256: 66178deae881a7b44ebd32a54ac07802b899dac0d6fcc9a92ec466288586dbf6

Contents?: true

Size: 449 Bytes

Versions: 223

Compression:

Stored size: 449 Bytes

Contents

# frozen_string_literal: true
# typed: true

module T::Types
  # The bottom type
  class NoReturn < Base
    def initialize; end

    def build_type
      nil
    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

223 entries across 223 versions & 1 rubygems

Version Path
sorbet-runtime-0.5.11875 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11874 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11865 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11862 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11856 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11851 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11845 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11842 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11839 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11835 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11834 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11829 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11826 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11823 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11820 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11813 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11812 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11810 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11805 lib/types/types/noreturn.rb
sorbet-runtime-0.5.11802 lib/types/types/noreturn.rb