mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-16 01:42:07 +00:00
Fixed #1006 AS3 - Warning - Function value used where type Boolean was expected
as3_new testdata compilers do not ignore warnings as3_new testdata without warnings
This commit is contained in:
@@ -347,7 +347,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable {
|
||||
if (!t.returnType().equals(TypeItem.UNBOUNDED) &&
|
||||
!implicitCoerce.equals(returnTypeStr) &&
|
||||
!(numberTypes.contains(implicitCoerce) && numberTypes.contains(returnTypeStr)) &&
|
||||
!(implicitCoerce.equals("Boolean"))
|
||||
!(implicitCoerce.equals("Boolean") && !returnTypeStr.equals("Function"))
|
||||
) {
|
||||
t = new ConvertAVM2Item(null, null, t, new TypeItem(implicitCoerce));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user