From 02f30b142aa467d3a24cc52a1fe3f2fed7ea1e33 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Thu, 31 Aug 2023 20:16:01 +0200 Subject: Enable explicit API mode (#3139) --- core/src/main/kotlin/validity/PreGenerationChecker.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'core/src/main/kotlin/validity') diff --git a/core/src/main/kotlin/validity/PreGenerationChecker.kt b/core/src/main/kotlin/validity/PreGenerationChecker.kt index 09284528..349b398b 100644 --- a/core/src/main/kotlin/validity/PreGenerationChecker.kt +++ b/core/src/main/kotlin/validity/PreGenerationChecker.kt @@ -4,13 +4,14 @@ package org.jetbrains.dokka.validity -fun interface PreGenerationChecker : () -> PreGenerationCheckerOutput { +public fun interface PreGenerationChecker : () -> PreGenerationCheckerOutput { override fun invoke(): PreGenerationCheckerOutput } -data class PreGenerationCheckerOutput(val result: Boolean, val messages: List) { +public data class PreGenerationCheckerOutput(val result: Boolean, val messages: List) { - operator fun plus(pair: Pair>) = - Pair(result && pair.first, messages + pair.second) + public operator fun plus(pair: Pair>): Pair> { + return Pair(result && pair.first, messages + pair.second) + } } -- cgit