Sha256: 89468a3298c74e81a46caf6f871971972d15d018aeba821d396107dd33faf3fd
Contents?: true
Size: 679 Bytes
Versions: 5
Compression:
Stored size: 679 Bytes
Contents
class Foo def id(&blk) blk end def check(v) rand < 0.5 ? v : [v] end def foo check(id {}).call # cause "undefined method: [^-> nil?]#call" end def foo1 id { } end end __END__ # Errors smoke/proc7.rb:11: [error] undefined method: nil#call smoke/proc7.rb:11: [error] undefined method: [(^(unknown) -> bot | untyped)?]#call smoke/proc7.rb:11: [error] undefined method: nil#call smoke/proc7.rb:11: [error] undefined method: [(^-> nil | untyped)?]#call # Classes class Foo def id: ?{ -> nil } -> ^-> nil? def check: ((^-> nil | untyped)? v) -> (([(^-> nil | untyped)?] | ^-> nil | untyped)?) def foo: -> untyped? def foo1: -> ^-> nil? end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
typeprof-0.20.0 | smoke/proc7.rb |
typeprof-0.15.3 | smoke/proc7.rb |
typeprof-0.15.2 | smoke/proc7.rb |
typeprof-0.15.1 | smoke/proc7.rb |
typeprof-0.15.0 | smoke/proc7.rb |