Error on 'if' without an 'else' branch when used as an expression
Original commit: e14c9645dc
This commit is contained in:
@@ -320,7 +320,9 @@ public class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR
|
||||
val compilerServices = Services.Builder()
|
||||
.register(javaClass<IncrementalCompilationComponents>(), IncrementalCompilationComponentsImpl(incrementalCaches, lookupTracker))
|
||||
.register(javaClass<CompilationCanceledStatus>(), object : CompilationCanceledStatus {
|
||||
override fun checkCanceled(): Unit = if (context.getCancelStatus().isCanceled()) throw CompilationCanceledException()
|
||||
override fun checkCanceled() {
|
||||
if (context.getCancelStatus().isCanceled()) throw CompilationCanceledException()
|
||||
}
|
||||
})
|
||||
.build()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user