Sha256: b4a5cea443b21afb5d8834f859e75310239cd3efac73e09034fc9a0287465525

Contents?: true

Size: 547 Bytes

Versions: 11

Compression:

Stored size: 547 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: [warning] inconsistent assignment to RBS-declared variable
smoke/rbs-attr.rb:13: [warning] inconsistent assignment to RBS-declared variable

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
typeprof-0.20.0 smoke/rbs-attr.rb
typeprof-0.15.3 smoke/rbs-attr.rb
typeprof-0.15.2 smoke/rbs-attr.rb
typeprof-0.15.1 smoke/rbs-attr.rb
typeprof-0.15.0 smoke/rbs-attr.rb
typeprof-0.14.1 smoke/rbs-attr.rb
typeprof-0.14.0 smoke/rbs-attr.rb
typeprof-0.13.0 smoke/rbs-attr.rb
typeprof-0.12.0 smoke/rbs-attr.rb
typeprof-0.11.0 smoke/rbs-attr.rb
typeprof-0.10.0 smoke/rbs-attr.rb