Skip to content

Commit

Permalink
Fix smoke tests
Browse files Browse the repository at this point in the history
Changing type of `Array#sample` caused the problems.
  • Loading branch information
soutaro committed Sep 10, 2024
1 parent 375dc63 commit 9ec57bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion smoke/and/a.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# @type var b: String
# @type var c: ::Integer

a = ["foo"].sample
a = ["foo"].find { true }

b = a && a.to_str

Expand Down
2 changes: 1 addition & 1 deletion smoke/diagnostics/else_on_exhaustive_case.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
x = [1, ""].sample
x = [1, ""].find { true }

case x
when Integer
Expand Down
2 changes: 1 addition & 1 deletion smoke/diagnostics/unsupported_syntax.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
class <<[1, ""].sample
class <<([1, ""].find { true })
end

0 comments on commit 9ec57bb

Please sign in to comment.