You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/elixir/test/elixir/module/types/integration_test.exs
+39-2Lines changed: 39 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -405,7 +405,7 @@ defmodule Module.Types.IntegrationTest do
405
405
# from: a.ex:3:24
406
406
_.._//_ = data
407
407
408
-
hint: string interpolation in Elixir uses the String.Chars protocol to convert a data structure into a string. Either convert the data type into a string upfront or implement the protocol accordingly
408
+
hint: string interpolation uses the String.Chars protocol to convert a data structure into a string. Either convert the data type into a string upfront or implement the protocol accordingly
409
409
""",
410
410
"""
411
411
warning: incompatible types given to String.Chars.to_string/1:
@@ -437,6 +437,8 @@ defmodule Module.Types.IntegrationTest do
@@ -462,7 +464,42 @@ defmodule Module.Types.IntegrationTest do
462
464
# from: a.ex:2:24
463
465
%Date{} = date
464
466
465
-
hint: for-comprehensions in Elixir use the Enumerable protocol to traverse data structures. Either convert the data type into a list (or another Enumerable) or implement the protocol accordingly
467
+
hint: for-comprehensions use the Enumerable protocol to traverse data structures. Either convert the data type into a list (or another Enumerable) or implement the protocol accordingly
468
+
""",
469
+
"""
470
+
warning: incompatible value given to :into option in for-comprehension:
471
+
472
+
into: Date.utc_today()
473
+
474
+
it has type:
475
+
476
+
-dynamic(
477
+
%Date{year: term(), month: integer(), day: float() or integer(), calendar: Calendar.ISO} or
but expected a type that implements the Collectable protocol, it must be one of:
482
+
483
+
%File.Stream{} or %HashDict{} or %HashSet{} or %IO.Stream{} or %MapSet{} or binary() or
484
+
list(term()) or non_struct_map()
485
+
486
+
hint: the :into option in for-comprehensions use the Enumerable protocol to build its result. Either pass a valid data type or implement the protocol accordingly
487
+
""",
488
+
"""
489
+
warning: incompatible value given to :into option in for-comprehension:
490
+
491
+
into: 456
492
+
493
+
it has type:
494
+
495
+
-integer()-
496
+
497
+
but expected a type that implements the Collectable protocol, it must be one of:
498
+
499
+
%File.Stream{} or %HashDict{} or %HashSet{} or %IO.Stream{} or %MapSet{} or binary() or
500
+
list(term()) or non_struct_map()
501
+
502
+
hint: the :into option in for-comprehensions use the Enumerable protocol to build its result. Either pass a valid data type or implement the protocol accordingly
0 commit comments