mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-22 06:13:32 +02:00
Merge pull request #3214 from Jakobovski/Jakobovski-patch-1
[language/kotlin] Update kotlin.html.markdown
This commit is contained in:
@@ -370,6 +370,12 @@ fun useObject() {
|
||||
val someRef: Any = ObjectExample // we use objects name just as is
|
||||
}
|
||||
|
||||
|
||||
/* The not-null assertion operator (!!) converts any value to a non-null type and
|
||||
throws an exception if the value is null.
|
||||
*/
|
||||
var b: String? = "abc"
|
||||
val l = b!!.length
|
||||
```
|
||||
|
||||
### Further Reading
|
||||
|
Reference in New Issue
Block a user