Skip to content
Permalink
Browse files

Test case for si-5618.

  • Loading branch information
axel22 committed May 2, 2012
1 parent 95bdd98 commit 8149a61c20b1854d5c84f9623a46c479c3a8de63
Showing with 34 additions and 0 deletions.
  1. +7 −0 test/pending/neg/t5618.check
  2. +27 −0 test/pending/neg/t5618.scala
@@ -0,0 +1,7 @@
t5618.scala:12: error: could not find implicit value for parameter class1: Class1
val class2 = new Class2
^
t5618.scala:18: error: could not find implicit value for parameter class1: Class1
val class2 = new Class2
^
two errors found
@@ -0,0 +1,27 @@




case class Class1


case class Class2(implicit class1: Class1)


object Test1 {
val class2 = new Class2
implicit val class1 = new Class1
}


object Test2 {
val class2 = new Class2
implicit val class1: Class1 = new Class1
}


object Test3 {
implicit val class1 = new Class1
val class2 = new Class2
}

0 comments on commit 8149a61

Please sign in to comment.
You can’t perform that action at this time.