From 012a762ba8b282284d9cb3d0c7848f529b3fe3e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 23 Dec 2020 17:42:08 +0800 Subject: fix #318 --- test/definition/bug.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test/definition/bug.lua') diff --git a/test/definition/bug.lua b/test/definition/bug.lua index 9eafe302..8c446123 100644 --- a/test/definition/bug.lua +++ b/test/definition/bug.lua @@ -152,3 +152,20 @@ TEST [[ string.xx = '' string.xx:() ]] + +TEST [[ +---@class Foo +Foo = {} +function Foo:Constructor() + self. = 1 +end + +---@class Foo2: Foo +Foo2 = {} +function Foo2:Constructor() +end + +---@type Foo2 +local v +v. +]] -- cgit v1.2.3