Skip to content

Commit aa4df11

Browse files
committed
test scala#247
1 parent 6074480 commit aa4df11

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Release
22
on:
33
push:
4-
tags: ["*"]
4+
# tags: ["*"]
55
jobs:
66
publish:
77
runs-on: ubuntu-latest
@@ -13,9 +13,10 @@ jobs:
1313
with:
1414
distribution: adopt
1515
java-version: 8
16-
- run: sbt versionCheck ci-release
16+
- run: sbt sources
1717
env:
1818
PGP_PASSPHRASE: ${{secrets.PGP_PASSPHRASE}}
1919
PGP_SECRET: ${{secrets.PGP_SECRET}}
2020
SONATYPE_PASSWORD: ${{secrets.SONATYPE_PASSWORD}}
2121
SONATYPE_USERNAME: ${{secrets.SONATYPE_USERNAME}}
22+
- run: grep enrichAsJavaIntFunction target/scala-*/src_managed/main/FunctionConverters.scala

fnGen/WrapFnGen.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,13 @@ object WrapFnGen {
226226

227227
// This is especially tricky because functions are contravariant in their arguments
228228
// 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+
}
229236
val s2jImpTree: (Tree, Int) =
230237
if (jfn.pTypes.forall(! _.isFinalType) && jfn.sig == jfn.sam.typeSignature)
231238
(

0 commit comments

Comments
 (0)