bug fix #742
This commit is contained in:
parent
314ae55066
commit
66c62ce37d
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
8
TestSuite/extensionoperators3.pas
Normal file
8
TestSuite/extensionoperators3.pas
Normal 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
6
TestSuite/generics17.pas
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
function f1<T>: T;begin end;
|
||||
|
||||
begin
|
||||
var a: byte := f1&<byte>();
|
||||
assert(a = 0);
|
||||
end.
|
||||
Loading…
Reference in a new issue