Sha256: 9663f566d2dd9614e7a3ed1d2acc8302803129e1ce0248e411c743021aec64cb

Contents?: true

Size: 287 Bytes

Versions: 7

Compression:

Stored size: 287 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 (Anonymous Struct) < Struct
  attr_accessor a() : untyped
end

class Foo < (Anonymous Struct)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
typeprof-0.5.3 smoke/struct.rb
typeprof-0.5.2 smoke/struct.rb
typeprof-0.5.1 smoke/struct.rb
typeprof-0.5.0 smoke/struct.rb
typeprof-0.4.2 smoke/struct.rb
typeprof-0.4.1 smoke/struct.rb
typeprof-0.4.0 smoke/struct.rb