Skip to content

Commit 872607e

Browse files
committed
TyClass subTypeOf TyTable
1 parent 4cce7b0 commit 872607e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/tang/intellij/lua/ty/TyClass.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ abstract class TyClass(override val className: String,
163163
}
164164

165165
override fun subTypeOf(other: ITy, context: SearchContext, strict: Boolean): Boolean {
166+
// class extends table
167+
if (other == Ty.TABLE) return true
166168
if (super.subTypeOf(other, context, strict)) return true
167169

168170
// Lazy init for superclass

0 commit comments

Comments
 (0)