Sha256: 35966c0ca8e1264415ceba939fd4f106d8b112d5a1030d7ec616a84ca84ab322
Contents?: true
Size: 369 Bytes
Versions: 3
Compression:
Stored size: 369 Bytes
Contents
# XXX: Need to support keyword_init Foo = Struct.new(:foo, keyword_init: true) class Foo def initialize(foo:) super(foo: foo.to_s) end end Foo.new(42) __END__ # Errors smoke/struct-keyword_init.rb:10: [error] wrong number of arguments (given 1, expected 0) # Classes class Foo < Struct attr_accessor foo(): nil def initialize: (foo: untyped) -> Foo end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
typeprof-0.9.2 | smoke/struct-keyword_init.rb |
typeprof-0.9.1 | smoke/struct-keyword_init.rb |
typeprof-0.9.0 | smoke/struct-keyword_init.rb |