Skip to content

Commit

Permalink
Merge pull request #83 from vitalydemidov/master
Browse files Browse the repository at this point in the history
Update generics.md
  • Loading branch information
phplego committed Jan 29, 2018
2 parents 430df46 + 22402f5 commit 54d6d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generics.md
Expand Up @@ -26,7 +26,7 @@ val box: Box<Int> = Box<Int>(1)
```

<!-- But if the parameters may be inferred, e.g. from the constructor arguments or by some other means, one is allowed to omit the type arguments: -->
Но если параметры могут выведены из контекста (в аргументах конструктора или в некоторых других случаях), можно опустить указание типа:
Но если параметры могут быть выведены из контекста (в аргументах конструктора или в некоторых других случаях), можно опустить указание типа:

``` kotlin
val box = Box(1) // 1 имеет тип Int, поэтому компилятор отмечает для себя, что у переменной box тип — Box<Int>
Expand Down

0 comments on commit 54d6d80

Please sign in to comment.