Sha256: 96621f75e8669812829214cdfc8ab25396cddcced11a2940e83731ba4026a118

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 Bytes

Contents

module Mirah
  module JVM
    module Types
      class ImplicitNilType < Type
        def initialize(types)
          super(types, types.get_mirror('java.lang.Object'))
        end

        def to_s
          "Type(implicit_nil)"
        end

        def widen(other)
          other
        end

        def compatible?(other)
          true
        end

        def assignable_from?(other)
          true
        end

        def matchesAnything; true; end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mirah-0.1.2-java lib/mirah/jvm/types/implicit_nil_type.rb
mirah-0.1.1-java lib/mirah/jvm/types/implicit_nil_type.rb
mirah-0.1.0-java lib/mirah/jvm/types/implicit_nil_type.rb
mirah-0.1.0.pre-java lib/mirah/jvm/types/implicit_nil_type.rb