mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-28 08:46:09 +00:00
Fixed Avoid Error Implicit coercion of a value of type XXX to an unrelated type YYY
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -66,6 +66,7 @@ package
|
||||
TestIfInIf;
|
||||
TestIfTry;
|
||||
TestIgnoreAndOr;
|
||||
TestImplicitCoerce;
|
||||
TestImportedVar;
|
||||
TestInc2;
|
||||
TestIncDec;
|
||||
|
||||
22
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestImplicitCoerce.as
vendored
Normal file
22
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestImplicitCoerce.as
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestImplicitCoerce
|
||||
{
|
||||
public function run():void
|
||||
{
|
||||
var j:int = 2;
|
||||
var i:int = 5;
|
||||
var r:* = Math.random();
|
||||
|
||||
if (j & Number(r == 1) && 5) {
|
||||
trace("OK");
|
||||
}
|
||||
var s:String = "hello: " + r;
|
||||
|
||||
if (s){
|
||||
trace("F");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user