Fix wrong example on the docs of @PurelyImplements

This commit is contained in:
yukuku
2018-02-27 01:46:44 +08:00
committed by Denis Zharkov
parent baa20e2677
commit 6f6b0baf3b
@@ -40,8 +40,8 @@ package kotlin.jvm
* Methods defined in `MyPureList<T>` overriding methods in `MutableList` use `T` as non-platform types:
*
* ```kotlin
* MyList<Int>().add(null) // Error
* MyList<Int?>().add(null) // Ok
* MyPureList<Int>().add(null) // Error
* MyPureList<Int?>().add(null) // Ok
* ```
*/
@Target(AnnotationTarget.CLASS)