Sha256: 36b196dbcff14bdca55484a98ffd99d63160081eef06a7a61370e7461efea051

Contents?: true

Size: 536 Bytes

Versions: 12

Compression:

Stored size: 536 Bytes

Contents

def read_test_1
  Foo.new.reader_example
end

def read_test_2
  Foo.new.accessor_example
end

def write_test
  Foo.new.writer_example = 1
  Foo.new.writer_example = "str"
  Foo.new.accessor_example = 1
  Foo.new.accessor_example = "str"
end

__END__
# Errors
smoke/rbs-attr.rb:11: [error] failed to resolve overload: Foo#writer_example=
smoke/rbs-attr.rb:13: [error] failed to resolve overload: Foo#accessor_example=

# Classes
class Object
  def read_test_1 : -> Integer
  def read_test_2 : -> Integer
  def write_test : -> String
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
typeprof-0.6.1 smoke/rbs-attr.rb
typeprof-0.6.0 smoke/rbs-attr.rb
typeprof-0.5.4 smoke/rbs-attr.rb
typeprof-0.5.3 smoke/rbs-attr.rb
typeprof-0.5.2 smoke/rbs-attr.rb
typeprof-0.5.1 smoke/rbs-attr.rb
typeprof-0.5.0 smoke/rbs-attr.rb
typeprof-0.4.2 smoke/rbs-attr.rb
typeprof-0.4.1 smoke/rbs-attr.rb
typeprof-0.4.0 smoke/rbs-attr.rb
typeprof-0.3.0 smoke/rbs-attr.rb
typeprof-0.2.0 smoke/rbs-attr.rb