This commit is contained in:
Бондарев Иван 2018-03-25 18:55:26 +02:00
parent 314ae55066
commit 66c62ce37d
5 changed files with 2715 additions and 2689 deletions

View file

@ -2,7 +2,7 @@
// This CSharp output file generated by Gardens Point LEX
// Version: 1.1.3.301
// Machine: IVAN-PC
// DateTime: 20.03.2018 20:53:51
// DateTime: 25.03.2018 18:30:28
// UserName: Ivan
// GPLEX input file <ABCPascal.lex>
// GPLEX frame file <embedded resource>

View file

@ -858,6 +858,10 @@ const_variable
{
$$ = NewConstVariable($1, $2, @$);
}
| const_variable tkAmpersend template_type_params
{
$$ = new ident_with_templateparams($1 as addressed_value, $3 as template_param_list, @$);
}
;
const_variable_2

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,8 @@
function operator*(s1:string;s2:single):byte; extensionmethod := 1;
function GetSingle := single(0);
begin
var a := '' * GetSingle();
assert(a=1);
end.

6
TestSuite/generics17.pas Normal file
View file

@ -0,0 +1,6 @@
function f1<T>: T;begin end;
begin
var a: byte := f1&<byte>();
assert(a = 0);
end.