summaryrefslogtreecommitdiff
path: root/test/files/run/StubErrorTypeclass.scala
blob: e9a48d543044e53af2245e4aeb3ecb442917c963 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
object Test extends scala.tools.partest.StubErrorMessageTest {
  def codeA = """
    package stuberrors
    class A[T]
  """

  def codeB = """
    package stuberrors
    class B[T: A](val t: T)
  """

  def userCode = """
    package stuberrors
    // Here we want a stub error not an implicit not found error
    class C { println(new B(1)) }
  """

  def removeFromClasspath(): Unit = {
    removeClasses("stuberrors", List("A"))
  }
}