Browse Source

Allow extension methods with generics

Brian Fiete 5 years ago
parent
commit
6bfd49f3ae
1 changed files with 2 additions and 1 deletions
  1. 2 1
      IDEHelper/Compiler/BfDefBuilder.cpp

+ 2 - 1
IDEHelper/Compiler/BfDefBuilder.cpp

@@ -587,7 +587,8 @@ BfMethodDef* BfDefBuilder::CreateMethodDef(BfMethodDeclaration* methodDeclaratio
 
 	if ((methodDef->mMethodType == BfMethodType_Normal) ||
 		(methodDef->mMethodType == BfMethodType_Operator) ||
-		(methodDef->mMethodType == BfMethodType_Mixin))
+		(methodDef->mMethodType == BfMethodType_Mixin) ||
+		(methodDef->mMethodType == BfMethodType_Extension))
 	{
 		ParseGenericParams(methodDeclaration->mGenericParams, methodDeclaration->mGenericConstraintsDeclaration, methodDef->mGenericParams, &methodDef->mExternalConstraints, outerGenericSize);
 	}