Join Slack
Communities
Powered by
<@U3HLSKE8L> The samples reside along with the sta...
# kontributors
i
ilya.gorbunov
12/11/2017, 3:58 AM
@adam-mcneilly
The samples reside along with the standard library. You can take the recent pull requests for this issue as an example:
https://youtrack.jetbrains.com/issue/KT-20357
a
adam-mcneilly
12/12/2017, 1:23 AM
Do you know if any of these have negative tests associated with them? I stumbled upon
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.properties/-delegates/index.html
and thought these would be a simple and harmless way for me to do a first PR. I'm considering writing a negative test against
notNull()
by trying to access it too soon but I don't know if there's a way for me to do that in the samples.
adam-mcneilly
12/12/2017, 1:35 AM
Found one -
https://github.com/JetBrains/kotlin/blob/e0a4f9ba76401cb687d3654ee9d0d8b0707de43e/libraries/stdlib/samples/test/samples/misc/preconditions.kt#L13
Open in Slack
Previous
Next