From 6a923867610643b8b06e8d8a4e8af1ba081b996a6397aa03fbd0a6a817cc4f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Bj=C3=B6rnstam?= Date: Thu, 22 Oct 2026 15:06:24 +0200 Subject: [PATCH] smoke: a file that checks may still warn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The compiler now warns about a definition nothing uses, and the sample file for inferred types defines functions it neither exports nor calls. "The file checks" asks for no errors. 🤖 Generated with [ECA](https://eca.dev) Co-Authored-By: eca-agent --- test/smoke.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/smoke.py b/test/smoke.py index c12c5cf..5605fd0 100755 --- a/test/smoke.py +++ b/test/smoke.py @@ -536,7 +536,9 @@ def inferred(server, tmp): with open(path, "w") as f: f.write(INFERRED) found = server.diagnostics_after("textDocument/didOpen", uri, INFERRED) - expect("inferred: the file checks", found == [], json.dumps(found, indent=1)) + # Warnings there are: its functions are not exported, and nothing calls them. + errors = [d for d in found if d["severity"] == 1] + expect("inferred: the file checks", errors == [], json.dumps(errors, indent=1)) def hover(text, needle, offset=1, nth=0): at = position_of(text, needle, nth, offset)