fix #2240
This commit is contained in:
parent
82deb54798
commit
21a2675b0a
|
|
@ -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 = "2490";
|
||||
public const string Revision = "2491";
|
||||
|
||||
public const string MainVersion = Major + "." + Minor;
|
||||
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
%COREVERSION%=3
|
||||
%REVISION%=2490
|
||||
%MINOR%=6
|
||||
%REVISION%=2491
|
||||
%COREVERSION%=3
|
||||
%MAJOR%=3
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
3.6.3.2490
|
||||
3.6.3.2491
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
!define VERSION '3.6.3.2490'
|
||||
!define VERSION '3.6.3.2491'
|
||||
|
|
|
|||
|
|
@ -42,9 +42,11 @@ type
|
|||
GPen = System.Windows.Media.Pen;
|
||||
/// Тип точки
|
||||
Point = System.Windows.Point;
|
||||
/// Тип вектора
|
||||
/// Тип точки
|
||||
GPoint = System.Windows.Point;
|
||||
/// Тип вектора
|
||||
Vector = System.Windows.Vector;
|
||||
/// Тип кисти
|
||||
GBrush = System.Windows.Media.Brush;
|
||||
/// Тип стиля шрифта
|
||||
FontStyle = (Normal,Bold,Italic,BoldItalic);
|
||||
|
|
|
|||
|
|
@ -10699,7 +10699,7 @@ begin
|
|||
Result := a;
|
||||
end;
|
||||
|
||||
/// Возвращает массив строк двумерного массива
|
||||
/// Возвращает массив столбцов двумерного массива
|
||||
function Cols<T>(Self: array [,] of T): array of array of T; extensionmethod;
|
||||
type ArrT = array of T;
|
||||
begin
|
||||
|
|
|
|||
9
TestSuite/ToMatrixArrOfArrT.pas
Normal file
9
TestSuite/ToMatrixArrOfArrT.pas
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
procedure ToMatrix<T>(Self: array of array of T); extensionmethod;
|
||||
begin
|
||||
Assert(2=2)
|
||||
end;
|
||||
|
||||
begin
|
||||
var a: array of array of integer;
|
||||
a.ToMatrix;
|
||||
end.
|
||||
|
|
@ -13841,7 +13841,7 @@ namespace PascalABCCompiler.TreeConverter
|
|||
SymbolInfo si = new SymbolInfo(context.top_function);
|
||||
si.symbol_kind = symbol_kind.sk_overload_function;
|
||||
top_function.ConnectedToType.Scope.AddSymbol(top_function.name, si);
|
||||
if (top_function.ConnectedToType.type_special_kind == SemanticTree.type_special_kind.array_kind && top_function.ConnectedToType.element_type.is_generic_parameter)
|
||||
if (top_function.ConnectedToType.type_special_kind == SemanticTree.type_special_kind.array_kind /*&& top_function.ConnectedToType.element_type.is_generic_parameter*/)
|
||||
top_function.ConnectedToType.base_type.Scope.AddSymbol(top_function.name, new SymbolInfo(context.top_function));
|
||||
else if (top_function.ConnectedToType.is_generic_parameter)
|
||||
top_function.ConnectedToType.base_type.Scope.AddSymbol(top_function.name, new SymbolInfo(context.top_function));
|
||||
|
|
|
|||
Loading…
Reference in a new issue