fix condition (#3434)

This commit is contained in:
samuraiGH 2026-06-30 12:02:27 +03:00 committed by GitHub
parent 7c31caa0b7
commit e07d9a21ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3027,7 +3027,8 @@ namespace PascalABCCompiler.TreeRealization
{ {
get 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; return null;
} }