diff --git a/Configuration/GlobalAssemblyInfo.cs b/Configuration/GlobalAssemblyInfo.cs index c38b46aaa..664b1ae57 100644 --- a/Configuration/GlobalAssemblyInfo.cs +++ b/Configuration/GlobalAssemblyInfo.cs @@ -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; diff --git a/Configuration/Version.defs b/Configuration/Version.defs index c4c1e2b37..33b6c37a4 100644 --- a/Configuration/Version.defs +++ b/Configuration/Version.defs @@ -1,4 +1,4 @@ -%COREVERSION%=3 -%REVISION%=2508 %MINOR%=6 +%REVISION%=2509 +%COREVERSION%=3 %MAJOR%=3 diff --git a/Release/pabcversion.txt b/Release/pabcversion.txt index 4414dc102..b0dfe4bb1 100644 --- a/Release/pabcversion.txt +++ b/Release/pabcversion.txt @@ -1 +1 @@ -3.6.3.2508 +3.6.3.2509 diff --git a/ReleaseGenerators/PascalABCNET_version.nsh b/ReleaseGenerators/PascalABCNET_version.nsh index ff408795b..77154121e 100644 --- a/ReleaseGenerators/PascalABCNET_version.nsh +++ b/ReleaseGenerators/PascalABCNET_version.nsh @@ -1 +1 @@ -!define VERSION '3.6.3.2508' +!define VERSION '3.6.3.2509' diff --git a/TestSuite/ugl1.pas b/TestSuite/ugl1.pas new file mode 100644 index 000000000..a505bd0fb --- /dev/null +++ b/TestSuite/ugl1.pas @@ -0,0 +1,15 @@ +// #2262 +type t1 = class +end; + +function f1(self: t1): t1; extensionmethod; +begin + Result := self; +end; + + +begin + var a := new t1; + var b := a.f1&; + Assert(a=b); +end. \ No newline at end of file diff --git a/TreeConverter/TreeConversion/syntax_tree_visitor.cs b/TreeConverter/TreeConversion/syntax_tree_visitor.cs index dca39a1f5..e623abee5 100644 --- a/TreeConverter/TreeConversion/syntax_tree_visitor.cs +++ b/TreeConverter/TreeConversion/syntax_tree_visitor.cs @@ -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"); }