fix #1599
This commit is contained in:
parent
c1fbe7a447
commit
105e87b0df
|
|
@ -407,7 +407,8 @@ namespace CodeCompletion
|
|||
(t is ArrayScope && tmp_ts2.IsArray && t.Rank == tmp_ts2.Rank) ||
|
||||
( tmp_ts2 is ArrayScope && t.IsArray && tmp_ts2.Rank == t.Rank) ||
|
||||
(t is TemplateParameterScope || t is UnknownScope) ||
|
||||
t is FileScope && tmp_ts2 is FileScope
|
||||
t is FileScope && tmp_ts2 is FileScope &&
|
||||
((t as FileScope).elementType == null) == ((tmp_ts2 as FileScope).elementType == null)
|
||||
)
|
||||
{
|
||||
lst.AddRange(extension_methods[t]);
|
||||
|
|
@ -441,7 +442,8 @@ namespace CodeCompletion
|
|||
if (t.GenericTypeDefinition == int_ts2.GenericTypeDefinition || t.IsEqual(int_ts2) ||
|
||||
(t is ArrayScope && int_ts2.IsArray && t.Rank == int_ts2.Rank) ||
|
||||
(int_ts2 is ArrayScope && t.IsArray && int_ts2.Rank == t.Rank) ||
|
||||
t is FileScope && int_ts2 is FileScope)
|
||||
t is FileScope && int_ts2 is FileScope &&
|
||||
((t as FileScope).elementType == null) == ((int_ts2 as FileScope).elementType == null))
|
||||
{
|
||||
lst.AddRange(extension_methods[t]);
|
||||
//break;
|
||||
|
|
|
|||
6
TestSuite/intellisense_tests/extensionmethods10.pas
Normal file
6
TestSuite/intellisense_tests/extensionmethods10.pas
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
begin
|
||||
var f: file of integer;
|
||||
f.Read{@(расширение file of T) function PABCExtensions.Read<T>(): T;@}();
|
||||
var f2: file;
|
||||
f2.Read{@@}();
|
||||
end.
|
||||
Loading…
Reference in a new issue