You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---@classTestBase---@classTestDerived1:TestBase---@classTestDerived2:TestBase---@classTestOther---@genericT---@paramv1T---@paramv2T---@returnTlocalfunctionfoo(v1, v2) endlocalt1---@typeTestDerived1localt2---@typeTestOtherfoo(t1, t2) -- it is legal!!localret=foo(t1, t2) -- ret is TestDerived1
Activity
blanhhy commentedon Aug 27, 2026
啊,刚刚发现,由于每个参数都是独立检查,还会导致这样的现象:
如果不限定基类,同一个泛型甚至可以是毫无关系的任意类型