diff --git a/_ba/tour/type-inference.md b/_ba/tour/type-inference.md index 926c3a4feb..662d737e5c 100644 --- a/_ba/tour/type-inference.md +++ b/_ba/tour/type-inference.md @@ -43,7 +43,7 @@ Scala kompajler će zaključiti nedostajuće tipske parametre iz konteksta i iz Ovo je primjer koji to ilustrira: ``` -case class MyPair[A, B](x: A, y: B); +case class MyPair[A, B](x: A, y: B) object InferenceTest3 extends App { def id[T](x: T) = x val p = MyPair(1, "scala") // type: MyPair[Int, String] diff --git a/_es/tour/type-inference.md b/_es/tour/type-inference.md index 0bbf7400fa..9a0e48758b 100644 --- a/_es/tour/type-inference.md +++ b/_es/tour/type-inference.md @@ -33,7 +33,7 @@ Tampoco es obligatorio especificar el tipo de los parámetros cuando se trate de Aquí se muestra un ejemplo que ilustra esto: - case class MyPair[A, B](x: A, y: B); + case class MyPair[A, B](x: A, y: B) object InferenceTest3 extends App { def id[T](x: T) = x val p = MyPair(1, "scala") // tipo: MyPair[Int, String] diff --git a/_ja/tour/type-inference.md b/_ja/tour/type-inference.md index 5a0dc8c4a7..3fb93ee339 100644 --- a/_ja/tour/type-inference.md +++ b/_ja/tour/type-inference.md @@ -37,7 +37,7 @@ def fac(n: Int) = if (n == 0) 1 else n * fac(n - 1) こちらは2つの例です。 ```tut -case class MyPair[A, B](x: A, y: B); +case class MyPair[A, B](x: A, y: B) val p = MyPair(1, "scala") // 型: MyPair[Int, String] def id[T](x: T) = x diff --git a/_ko/tour/type-inference.md b/_ko/tour/type-inference.md index 421fb41036..280cb81bf7 100644 --- a/_ko/tour/type-inference.md +++ b/_ko/tour/type-inference.md @@ -33,7 +33,7 @@ previous-page: polymorphic-methods 다음 예제는 이를 나타낸 예제다. - case class MyPair[A, B](x: A, y: B); + case class MyPair[A, B](x: A, y: B) object InferenceTest3 extends App { def id[T](x: T) = x val p = MyPair(1, "scala") // 타입: MyPair[Int, String] diff --git a/_pl/tour/type-inference.md b/_pl/tour/type-inference.md index c3d057bab9..1f38da7a5b 100644 --- a/_pl/tour/type-inference.md +++ b/_pl/tour/type-inference.md @@ -37,7 +37,7 @@ Nie jest też konieczne określenie parametrów typu, kiedy są wywoływane [met Oto ilustrujący to przykład: ``` -case class MyPair[A, B](x: A, y: B); +case class MyPair[A, B](x: A, y: B) object InferenceTest3 extends App { def id[T](x: T) = x val p = MyPair(1, "scala") // typ: MyPair[Int, String] diff --git a/_pt-br/tour/type-inference.md b/_pt-br/tour/type-inference.md index a9f5de8f54..74df567620 100644 --- a/_pt-br/tour/type-inference.md +++ b/_pt-br/tour/type-inference.md @@ -39,7 +39,7 @@ Também não é obrigatório especificar os tipos dos parâmetros quando [métod Por exemplo: ``` -case class MyPair[A, B](x: A, y: B); +case class MyPair[A, B](x: A, y: B) object InferenceTest3 extends App { def id[T](x: T) = x val p = MyPair(1, "scala") // type: MyPair[Int, String] diff --git a/_ru/tour/type-inference.md b/_ru/tour/type-inference.md index 3f936385fa..45aa9c1754 100644 --- a/_ru/tour/type-inference.md +++ b/_ru/tour/type-inference.md @@ -37,7 +37,7 @@ def fac(n: Int) = if (n == 0) 1 else n * fac(n - 1) Вот два примера: ```tut -case class MyPair[A, B](x: A, y: B); +case class MyPair[A, B](x: A, y: B) val p = MyPair(1, "scala") // тип: MyPair[Int, String] def id[T](x: T) = x diff --git a/_zh-cn/tour/type-inference.md b/_zh-cn/tour/type-inference.md index 8169252b17..2434ee069b 100644 --- a/_zh-cn/tour/type-inference.md +++ b/_zh-cn/tour/type-inference.md @@ -39,7 +39,7 @@ def fac(n: Int) = if (n == 0) 1 else n * fac(n - 1) 看下面两个例子: ```tut -case class MyPair[A, B](x: A, y: B); +case class MyPair[A, B](x: A, y: B) val p = MyPair(1, "scala") // type: MyPair[Int, String] def id[T](x: T) = x