Skip to content

Commit f3a375b

Browse files
author
Adriaan Moors
committed
test for scala#2591
1 parent 277e289 commit f3a375b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/files/pos/t2591.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class A
2+
class B
3+
4+
object Implicits {
5+
implicit def imp(x: A): Int = 41
6+
implicit def imp(x: B): Int = 41
7+
}
8+
9+
object Test {
10+
// should cause imp to be in scope so that the next expression type checks
11+
// `import Implicits._` works
12+
import Implicits.imp
13+
14+
(new A) : Int
15+
}

0 commit comments

Comments
 (0)