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
If a call to a deprecated method requires a def expansion, the expanded def might produce its own deprecation warning. For example, it happens with default arguments:
@[Deprecated]
deftest(x, y =0)
endtest1
In test.cr:5:1
5 | test 1
^---
Warning: Deprecated top-level test.
In test.cr:2:1
2 | def test(x, y = 0)
^---
Warning: Deprecated top-level test.
A total of 2 warnings were found.
and with out-of-order named arguments:
@[Deprecated]
deftest(x, y)
endtesty:1, x:2
In test.cr:5:1
5 | test y: 1, x: 2
^---
Warning: Deprecated top-level test:y:x.
In test.cr:2:1
2 | def test(x, y)
^---
Warning: Deprecated top-level test.
A total of 2 warnings were found.
The text was updated successfully, but these errors were encountered:
If a call to a deprecated method requires a def expansion, the expanded def might produce its own deprecation warning. For example, it happens with default arguments:
and with out-of-order named arguments:
The text was updated successfully, but these errors were encountered: