fix #2262
This commit is contained in:
parent
91bb72fc34
commit
f2fcb0475a
|
|
@ -15,7 +15,7 @@ internal static class RevisionClass
|
|||
public const string Major = "3";
|
||||
public const string Minor = "6";
|
||||
public const string Build = "3";
|
||||
public const string Revision = "2508";
|
||||
public const string Revision = "2509";
|
||||
|
||||
public const string MainVersion = Major + "." + Minor;
|
||||
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
%COREVERSION%=3
|
||||
%REVISION%=2508
|
||||
%MINOR%=6
|
||||
%REVISION%=2509
|
||||
%COREVERSION%=3
|
||||
%MAJOR%=3
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
3.6.3.2508
|
||||
3.6.3.2509
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
!define VERSION '3.6.3.2508'
|
||||
!define VERSION '3.6.3.2509'
|
||||
|
|
|
|||
15
TestSuite/ugl1.pas
Normal file
15
TestSuite/ugl1.pas
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// #2262
|
||||
type t1 = class
|
||||
end;
|
||||
|
||||
function f1<T>(self: t1): t1; extensionmethod;
|
||||
begin
|
||||
Result := self;
|
||||
end;
|
||||
|
||||
|
||||
begin
|
||||
var a := new t1;
|
||||
var b := a.f1&<byte>;
|
||||
Assert(a=b);
|
||||
end.
|
||||
|
|
@ -19505,7 +19505,7 @@ namespace PascalABCCompiler.TreeConverter
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (!(adr is compiled_static_method_call) && !(adr is common_static_method_call))
|
||||
if (!(adr is compiled_static_method_call) && !(adr is common_static_method_call) && !(adr is common_namespace_function_call))
|
||||
AddError(get_location(_ident_with_templateparams.name), "TRIANGLE_BRACKETS_NOT_AWAITED");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue