Skip to content

Commit d355113

Browse files
Merge pull request #12951 from griggt/fix-10047
Fix #10047: Add regression test
2 parents 10145ff + 000e4c1 commit d355113

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/run/i10047.check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
slash

tests/run/i10047.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
object wrapper {
2+
val / = "slash"
3+
}
4+
5+
object foo {
6+
implicit val postfixOps: scala.languageFeature.postfixOps = scala.language.postfixOps
7+
val / = wrapper./
8+
}
9+
10+
object Test {
11+
def main(args: Array[String]): Unit = {
12+
val wd = foo./
13+
println(wd)
14+
}
15+
}

0 commit comments

Comments
 (0)