[minor] fixes after review

This commit is contained in:
Ilya Chernikov
2019-05-23 14:26:46 +02:00
parent b97813f2b0
commit deb74acc88
3 changed files with 3 additions and 3 deletions
@@ -167,5 +167,5 @@ fun <R> ResultWithDiagnostics<R>.resultOrNull(): R? = when (this) {
*/
inline fun <R> ResultWithDiagnostics<R>.resultOr(body: (ResultWithDiagnostics.Failure) -> Nothing): R = when (this) {
is ResultWithDiagnostics.Success<R> -> value
else -> body(this as ResultWithDiagnostics.Failure)
is ResultWithDiagnostics.Failure -> body(this)
}
@@ -8,7 +8,7 @@ package kotlin.script.experimental.api
import java.io.Serializable
const val REPL_SNIPPET_FIRST_NO = 1
const val REPL_Snippet_FIRST_GEN = 1
const val REPL_SNIPPET_FIRST_GEN = 1
interface ReplSnippetId : Serializable, Comparable<ReplSnippetId> {
val no: Int