Fix replacing global scope interface method by local instance when template parameter is restricted by this interface.

This commit is contained in:
Voloshin Bogdan 2018-05-17 01:41:32 +03:00
parent bf8316cfb2
commit 828e16457f

View file

@ -1942,6 +1942,7 @@ namespace PascalABCCompiler.TreeRealization
public override List<SymbolInfo> find_in_type(string name, SymbolTable.Scope CurrentScope, bool no_search_in_extension_methods = false)
{
List<SymbolInfo> sil = Scope.FindOnlyInType(name, CurrentScope);//:=,create,x
sil = sil?.Select(x => x.copy()).ToList();
// SSM 2018.04.05
if (base_type is compiled_generic_instance_type_node)