Skip to content

Commit

Permalink
Failing test for struct with block
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Dec 18, 2021
1 parent 05d6408 commit 5f167e8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions smoke/struct-with-block.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Foo = Struct.new(:foo) do
def foo?
!!foo
end

private

def not_foo?
!foo
end
end
__END__
# Classes
class Foo < Struct[untyped]
attr_accessor foo(): untyped
def foo?: -> bool
private
def not_foo?: -> bool
end

0 comments on commit 5f167e8

Please sign in to comment.