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: _overviews/contribute/bug-reporting-guide.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ If you cannot find your issue in the issue tracker, create a new bug. The detail
65
65
66
66
Please make sure to fill in as many fields as possible. Make sure you've indicated the following:
67
67
68
-
1.**Exact Scala version** that you are using. For example, `2.13.10` or `3.2.0`. If the bug happens in multiple versions indicate all of them.
68
+
1.**Exact Scala version** that you are using. For example, `2.13.11` or `3.3.0`. If the bug happens in multiple versions indicate all of them.
69
69
2.**The component** that is affected by the bug. For example, the Standard Library, Scaladoc, etc.
70
70
3.**Labels** related to your issue. For example, if you think your issue is related to the typechecker, and if you have successfully minimized your issue, label your bug as "typechecker" and "minimized". Issue tracker will suggest names for existing labels as you type them so try not to create duplicates.
71
71
4.**Running environment**. Are you running on Linux? Windows? What JVM version are you using?
Copy file name to clipboardExpand all lines: _pl/tour/implicit-conversions.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,8 @@ Przykładowo, kiedy wywołujemy metodę Javy, która wymaga typu `java.lang.Inte
43
43
```scala mdoc
44
44
importscala.language.implicitConversions
45
45
46
-
implicitdefint2Integer(x: Int) =
47
-
java.lang.Integer.valueOf(x)
46
+
implicitdefint2Integer(x: Int):Integer=
47
+
Integer.valueOf(x)
48
48
```
49
49
50
50
Aby zdefiniować własne konwersje niejawne, należy zaimportować `scala.language.implicitConversions` (albo uruchomić kompilator z opcją `-language:implicitConversions`). Ta funkcjonalność musi być włączona jawnie ze względu na problemy, jakie mogą się wiązać z ich nadmiernym stosowaniem.
Copy file name to clipboardExpand all lines: _pt-br/tour/implicit-conversions.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,8 +44,8 @@ Por exemplo, ao chamar um método Java que espera um `java.lang.Integer`, você
44
44
```scala mdoc
45
45
importscala.language.implicitConversions
46
46
47
-
implicitdefint2Integer(x: Int) =
48
-
java.lang.Integer.valueOf(x)
47
+
implicitdefint2Integer(x: Int):Integer=
48
+
Integer.valueOf(x)
49
49
```
50
50
51
51
Para definir suas próprias conversões implícitas, primeiro você deve importar `scala.language.implicitConversions` (ou invocar o compilador com a opção `-language: implicitConversions`). Tal recurso deve ser explicitamente habilitado porque pode se tornar complexo se usado indiscriminadamente.
Компилятор предупреждает при компиляции об обнаружении неявных преобразований, т.к. неявные преобразования могут иметь разные подводные камни (особенно если использовать их без разбора).
0 commit comments