Closed sushihangover closed 9 years ago
./as/test-as-FunctionStyleCast.as... REGRESSION (SUCCESS -> COMPILATION ERROR)
Mono.CSharp.InternalErrorException: ./as/test-as-FunctionStyleCast.as(28,32): _root.Foo.Main() ---> System.IndexOutOfRangeException: Array index is out of range.
at Mono.CSharp.Convert.ExplicitReferenceConversion (Mono.CSharp.Expression source, Mono.CSharp.TypeSpec source_type, Mono.CSharp.TypeSpec target_type, Mono.CSharp.ResolveContext opt_ec) [0x00369] in /Users/administrator/Documents/Code/playscript/playscriptredux/playscript/mcs/mcs/convert.cs:2412
// Compiler options: -psstrict+
package {
import System.*;
import System.IO.*;
import System.Collections.Generic.*;
import flash.utils.*;
public class Foo {
public class LoaderHandler {
public var sourceExt:String;
public var targetExt:String;
public var handler:Function;
public var matcher:Function;
public function LoaderHandler(sourceExt:String, targetExt:String, handler:Function, matcher:Function)
{
this.sourceExt = sourceExt;
this.targetExt = targetExt;
this.handler = handler;
this.matcher = matcher;
}
}
private static var loaderHandler:LoaderHandler;
public static function Main():int {
if (loaderHandler != null) {
var callback:Func.<String,ByteArray,ByteArray> = Func.<String,ByteArray,ByteArray>(loaderHandler.handler);
}
return 0;
}
}
}
commit 00e6dd5a8536696455150c36464b80e364409533 Author: SushiHangover sushihangover@outlook.com Date: Tue Aug 25 11:25:21 2015 -0700
Fixes #74 : ActionScript function casts
[ERROR] FATAL UNHANDLED EXCEPTION: Mono.CSharp.InternalErrorException: ../pscorlib/flash/net/URLLoader.play(389,20): flash.net.URLLoader.doLocalLoad() ---> System.IndexOutOfRangeException: Array index is out of range.