Sha256: 8e00816bc8e150fb9635b6f9093427b766278973c5d76ba674897705086f7797

Contents?: true

Size: 304 Bytes

Versions: 5

Compression:

Stored size: 304 Bytes

Contents

# tentative: Currently, the hidden instance variable belongs to Foo, not Anonymous Struct.
# Thus, it outputs "untyped"
class Foo < Struct.new(:a)
end
Foo.new.a = 1
__END__
# Classes
class AnonymousStruct_generated_1 < Struct
  attr_accessor a(): untyped
end

class Foo < AnonymousStruct_generated_1
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typeprof-0.11.0 smoke/struct.rb
typeprof-0.10.0 smoke/struct.rb
typeprof-0.9.2 smoke/struct.rb
typeprof-0.9.1 smoke/struct.rb
typeprof-0.9.0 smoke/struct.rb