This commit is contained in:
Mikhalkovich Stanislav 2026-07-01 20:41:24 +03:00
commit 544b2c35ab

View file

@ -3027,7 +3027,8 @@ namespace PascalABCCompiler.TreeRealization
{
get
{
if (!_compiled_type.IsGenericParameter || _compiled_type.DeclaringMethod == null)
// если _compiled_type.DeclaringMethod != null то параметр был объявлен для generic метода, а не generic класса
if (!_compiled_type.IsGenericParameter || _compiled_type.DeclaringMethod != null)
{
return null;
}