mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-20 17:15:32 +00:00
Fixed Avoid Error Implicit coercion of a value of type XXX to an unrelated type YYY
This commit is contained in:
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