Skip to content

Commit

Permalink
Merge pull request scala#10902 from lrytz/t9395
Browse files Browse the repository at this point in the history
Test case for issue 9395
  • Loading branch information
SethTisue authored Oct 28, 2024
2 parents 4089a9f + e414e45 commit 12f5987
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/files/run/t9395.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
object Test extends App {
def f(s: String): String = "1"
val f: (String) => String = s => "2"

val t: String => String = f

// https://github.com/scala/bug/issues/9395#issuecomment-2440062208
assert(t("") == "2")
}

0 comments on commit 12f5987

Please sign in to comment.