Sha256: 47f5734cd560831427f176ad4068afbf80d735e26cdf873b2222c2c81629ebab

Contents?: true

Size: 405 Bytes

Versions: 5

Compression:

Stored size: 405 Bytes

Contents

module Mirah
  module JVM
    module Types
      class UnreachableType < Type
        def initialize
          super('java.lang.Object')
        end

        def to_s
          "Type(null)"
        end

        def unreachable?
          true
        end

        def compatible?(other)
          true
        end

        def assignable_from?(other)
          true
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mirah-0.0.12-java lib/mirah/jvm/types/unreachable_type.rb
mirah-0.0.11-java lib/mirah/jvm/types/unreachable_type.rb
mirah-0.0.10-java lib/mirah/jvm/types/unreachable_type.rb
mirah-0.0.9-java lib/mirah/jvm/types/unreachable_type.rb
mirah-0.0.8-java lib/mirah/jvm/types/unreachable_type.rb