diff --git a/CodeStyleAndFormatting/CodeSchemasAndEditorConfig/Theory/src/main/kotlin/jetbrains/refactoring/course/formatting/Task.kt b/CodeStyleAndFormatting/CodeSchemasAndEditorConfig/Theory/src/main/kotlin/jetbrains/refactoring/course/formatting/Task.kt index 469d033..db177c0 100644 --- a/CodeStyleAndFormatting/CodeSchemasAndEditorConfig/Theory/src/main/kotlin/jetbrains/refactoring/course/formatting/Task.kt +++ b/CodeStyleAndFormatting/CodeSchemasAndEditorConfig/Theory/src/main/kotlin/jetbrains/refactoring/course/formatting/Task.kt @@ -6,4 +6,7 @@ fun funWithCodeStyleIssues() { for ( i in 1..10) { println("Please, fix me!") } +} + +fun main() { } \ No newline at end of file diff --git a/InliningCode/InlineMethodRefactoring/Theory/src/main/kotlin/jetbrains/refactoring/course/inlining/Task.kt b/InliningCode/InlineMethodRefactoring/Theory/src/main/kotlin/jetbrains/refactoring/course/inlining/Task.kt index 8839d72..7b4b235 100644 --- a/InliningCode/InlineMethodRefactoring/Theory/src/main/kotlin/jetbrains/refactoring/course/inlining/Task.kt +++ b/InliningCode/InlineMethodRefactoring/Theory/src/main/kotlin/jetbrains/refactoring/course/inlining/Task.kt @@ -20,3 +20,8 @@ class Store { PrintWriter(file, Charsets.UTF_8).use { it.print(text) } } } + +fun main() { + val client = Store() + println(client.calculateTotalPrice(listOf(1, 2, 3))) // Output: Sum of prices +}