From 38e48f7c910c417d8ee0d0c2aa258888505da74e Mon Sep 17 00:00:00 2001 From: Yogthos Date: Tue, 2 Jun 2026 21:35:53 -0400 Subject: [PATCH] Fix duplicate prefer-method: remove stale stub and duplicate core-bindings entry\n\nThe Phase 5 implementation added core-prefer-method and a\ncore-bindings entry, but the old stub definition and its binding\nwere not removed. Janet silently uses the last definition (the\nnil-returning stub), making prefer-method silently broken.\nRemoved both duplicates. --- src/jolt/core.janet | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/jolt/core.janet b/src/jolt/core.janet index f14ff68..8300be7 100644 --- a/src/jolt/core.janet +++ b/src/jolt/core.janet @@ -947,9 +947,6 @@ @[{:jolt/type :symbol :ns nil :name "def"} arrow-sym arrow-body] @[{:jolt/type :symbol :ns nil :name "def"} map-sym map-body]]) -# prefer-method stub — multimethod preference ordering -(defn core-prefer-method [multifn dispatch-val & dispatch-vals] - nil) # resolve stub — returns nil (symbols not found in Jolt's clojure.core) (defn core-resolve [sym] nil) @@ -1201,8 +1198,6 @@ "IllegalStateException" core-IllegalStateException "definterface" core-definterface "defrecord" core-defrecord - "comment" core-comment - "prefer-method" core-prefer-method "resolve" core-resolve "update" core-update "copy-core-var" core-copy-core-var