From e0a59c8db6e08ca138604136032cb1656225b811 Mon Sep 17 00:00:00 2001 From: sergeych Date: Mon, 5 Jan 2026 10:35:38 +0100 Subject: [PATCH] cleaning up OOTest --- lynglib/src/commonTest/kotlin/OOTest.kt | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/lynglib/src/commonTest/kotlin/OOTest.kt b/lynglib/src/commonTest/kotlin/OOTest.kt index bea93fe..ec38098 100644 --- a/lynglib/src/commonTest/kotlin/OOTest.kt +++ b/lynglib/src/commonTest/kotlin/OOTest.kt @@ -588,25 +588,6 @@ class OOTest { assertEquals(3, F2().bar) """ ) - /* - Notes. - - The override keyword is an _optional_ flag that the symbol must exist in one of the parents - and can be overridden. - - Compiler checks as early as possible that the symbol exists in one of the parents and is open. - By default, all public/protected symbols are open. If there is no such symbol, the exception is thrown. - - In contrast, if the symbol has no special flags, the compiler either creates a new one of overrides - existing, checking that override is allowed. - - Question to AI: the keyword to mark non-overridable symbols? final is not the best option as for me. - - Overriding the var/val should also be possible with an initializer of with get()/set(value). - - overriding can't alter visibility: it must remain as declared in the parent. Private symbols can't be - neither declared abstract nor overridden. - */ } @Test