File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
on :
3
3
push :
4
- tags : ["*"]
4
+ # tags: ["*"]
5
5
jobs :
6
6
publish :
7
7
runs-on : ubuntu-latest
13
13
with :
14
14
distribution : adopt
15
15
java-version : 8
16
- - run : sbt versionCheck ci-release
16
+ - run : sbt sources
17
17
env :
18
18
PGP_PASSPHRASE : ${{secrets.PGP_PASSPHRASE}}
19
19
PGP_SECRET : ${{secrets.PGP_SECRET}}
20
20
SONATYPE_PASSWORD : ${{secrets.SONATYPE_PASSWORD}}
21
21
SONATYPE_USERNAME : ${{secrets.SONATYPE_USERNAME}}
22
+ - run : grep enrichAsJavaIntFunction target/scala-*/src_managed/main/FunctionConverters.scala
Original file line number Diff line number Diff line change @@ -226,6 +226,13 @@ object WrapFnGen {
226
226
227
227
// This is especially tricky because functions are contravariant in their arguments
228
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
+ }
229
236
val s2jImpTree : (Tree , Int ) =
230
237
if (jfn.pTypes.forall(! _.isFinalType) && jfn.sig == jfn.sam.typeSignature)
231
238
(
You can’t perform that action at this time.
0 commit comments