fix #1795
This commit is contained in:
parent
7059541a44
commit
b21c2c0aa3
|
|
@ -15,7 +15,7 @@ internal static class RevisionClass
|
|||
public const string Major = "3";
|
||||
public const string Minor = "5";
|
||||
public const string Build = "0";
|
||||
public const string Revision = "2193";
|
||||
public const string Revision = "2194";
|
||||
|
||||
public const string MainVersion = Major + "." + Minor;
|
||||
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
%MINOR%=5
|
||||
%REVISION%=2193
|
||||
%COREVERSION%=0
|
||||
%REVISION%=2194
|
||||
%MINOR%=5
|
||||
%MAJOR%=3
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
!define VERSION '3.5.0.2193'
|
||||
!define VERSION '3.5.0.2194'
|
||||
|
|
|
|||
7
TestSuite/errors/err0332.pas
Normal file
7
TestSuite/errors/err0332.pas
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
var r: real;
|
||||
|
||||
begin
|
||||
var s: set of integer;
|
||||
s := [2,4,r];
|
||||
Print(s);
|
||||
end.
|
||||
|
|
@ -36,6 +36,10 @@ namespace PascalABCCompiler.TreeConverter
|
|||
|
||||
|
||||
assign_is_converting = true;
|
||||
if (to.type.type_special_kind == type_special_kind.set_type && from.type.type_special_kind == type_special_kind.set_type && // SSM 12/07/19 fix #1795
|
||||
convertion_data_and_alghoritms.is_value_int_type(to.type.element_type) &&
|
||||
convertion_data_and_alghoritms.is_value_real_type(from.type.element_type))
|
||||
AddError(new CanNotConvertTypes(from, from.type, to.type, from.location));
|
||||
statement_node en = find_operator(_assign.operator_type, to, from, get_location(_assign));
|
||||
assign_is_converting = false;
|
||||
return_value(en);
|
||||
|
|
|
|||
Loading…
Reference in a new issue