Sha256: 6d24456dbee0955f6dafec9648d9caba5840540914a54d7eb09c4efb8e9d0a81
Contents?: true
Size: 411 Bytes
Versions: 16
Compression:
Stored size: 411 Bytes
Contents
# @type var a: Array<Integer> a = [] a[1] = 3 # !expects ArgumentTypeMismatch: receiver=::Array<::Integer>, expected=::Integer, actual=::String a[2] = "foo" # @type var i: Integer i = a[0] # @type var s: String # !expects IncompatibleAssignment: lhs_type=::String, rhs_type=::Integer s = a[1] b = ["a", "b", "c"] s = b[0] # !expects IncompatibleAssignment: lhs_type=::Integer, rhs_type=::String i = b[1]
Version data entries
16 entries across 16 versions & 1 rubygems