From 492ed7f90f8fe575c64d4689b2963bd0674da0f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 11 Jul 2022 15:57:46 +0800 Subject: fix #1317 --- test/diagnostics/common.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/diagnostics') diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index ec71e77e..0df678d1 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -1658,6 +1658,12 @@ TEST [[ ---@cast integer ]] +TEST [[ +---@diagnostic disable: unused-local +local x, y +---@cast y number +]] + TEST [[ ---@class A -- cgit v1.2.3