From 9f10786a94eac9ad2d730ba1026a9ff8d28cc1cf Mon Sep 17 00:00:00 2001 From: sergeych Date: Sun, 22 Feb 2026 10:34:46 +0300 Subject: [PATCH] small tweaks to remove warnings --- lynglib/build.gradle.kts | 2 +- lynglib/src/commonMain/kotlin/net/sergeych/lyng/Compiler.kt | 2 +- .../kotlin/net/sergeych/lyng/bytecode/BytecodeCompiler.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lynglib/build.gradle.kts b/lynglib/build.gradle.kts index b5eaecb..daf1234 100644 --- a/lynglib/build.gradle.kts +++ b/lynglib/build.gradle.kts @@ -21,7 +21,7 @@ import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl import org.jetbrains.kotlin.gradle.dsl.JvmTarget group = "net.sergeych" -version = "1.5.1-SNAPSHOT" +version = "1.5.0-SNAPSHOT" // Removed legacy buildscript classpath declarations; plugins are applied via the plugins DSL below diff --git a/lynglib/src/commonMain/kotlin/net/sergeych/lyng/Compiler.kt b/lynglib/src/commonMain/kotlin/net/sergeych/lyng/Compiler.kt index bf12dc7..0065794 100644 --- a/lynglib/src/commonMain/kotlin/net/sergeych/lyng/Compiler.kt +++ b/lynglib/src/commonMain/kotlin/net/sergeych/lyng/Compiler.kt @@ -1211,7 +1211,7 @@ class Compiler( is FrameSlotRef -> raw.peekValue() ?: raw.read() is RecordSlotRef -> raw.peekValue() ?: raw.read() else -> raw - } ?: continue + } when (resolved) { is ObjClass -> nameObjClass[name] = resolved is ObjInstance -> nameObjClass[name] = resolved.objClass diff --git a/lynglib/src/commonMain/kotlin/net/sergeych/lyng/bytecode/BytecodeCompiler.kt b/lynglib/src/commonMain/kotlin/net/sergeych/lyng/bytecode/BytecodeCompiler.kt index e671f19..72a042b 100644 --- a/lynglib/src/commonMain/kotlin/net/sergeych/lyng/bytecode/BytecodeCompiler.kt +++ b/lynglib/src/commonMain/kotlin/net/sergeych/lyng/bytecode/BytecodeCompiler.kt @@ -1638,7 +1638,7 @@ class BytecodeCompiler( else -> null } } - else -> null + //else -> null } }