We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5468cb commit cfe177eCopy full SHA for cfe177e
fnGen/WrapFnGen.scala
@@ -226,6 +226,13 @@ object WrapFnGen {
226
227
// This is especially tricky because functions are contravariant in their arguments
228
// Need to prevent e.g. Any => String from "downcasting" itself to Int => String; we want the more exact conversion
229
+ if (jfn.title == "IntFunction") {
230
+ println("jfn.pTypes: " + jfn.pTypes)
231
+ println("jfn.pTypes.forall(! _.isFinalType): " + jfn.pTypes.forall(! _.isFinalType))
232
+ println("jfn.sig: " + jfn.sig)
233
+ println("jfn.sam.typeSignature: " + jfn.sam.typeSignature)
234
+ println("jfn.sig == jfn.sam.typeSignature: " + (jfn.sig == jfn.sam.typeSignature))
235
+ }
236
val s2jImpTree: (Tree, Int) =
237
if (jfn.pTypes.forall(! _.isFinalType) && jfn.sig == jfn.sam.typeSignature)
238
(
0 commit comments