浏览代码

[jvm] more boxes

Simon Krajewski 5 年之前
父节点
当前提交
a406e4e38b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/generators/jvm/jvmFunctions.ml

+ 2 - 0
src/generators/jvm/jvmFunctions.ml

@@ -318,6 +318,7 @@ module JavaFunctionalInterfaces = struct
 			| want1 :: want,have1 :: have ->
 				begin match want1 with
 				| TTypeParameter n ->
+					let have1 = get_boxed_type have1 in
 					loop ((n,have1) :: params) want have
 				| _ ->
 					if have1 <> want1 then None
@@ -330,6 +331,7 @@ module JavaFunctionalInterfaces = struct
 		| None,None ->
 			loop [] jfi.jargs args
 		| Some (TTypeParameter n),Some jsig ->
+			let jsig = get_boxed_type jsig in
 			loop [n,jsig] jfi.jargs args
 		| Some jsig1,Some jsig2 ->
 			if jsig1 <> jsig2 then None