summaryrefslogtreecommitdiff
path: root/test/files/run/StubErrorBInheritsFromA.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/StubErrorBInheritsFromA.scala')
-rw-r--r--test/files/run/StubErrorBInheritsFromA.scala22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/files/run/StubErrorBInheritsFromA.scala b/test/files/run/StubErrorBInheritsFromA.scala
new file mode 100644
index 0000000000..3e02692171
--- /dev/null
+++ b/test/files/run/StubErrorBInheritsFromA.scala
@@ -0,0 +1,22 @@
+object Test extends scala.tools.partest.StubErrorMessageTest {
+ def codeA = """
+ package stuberrors
+ class A
+ """
+
+ def codeB = """
+ package stuberrors
+ class B extends A
+ """
+
+ def userCode = """
+ package stuberrors
+ class C {
+ new B
+ }
+ """
+
+ def removeFromClasspath(): Unit = {
+ removeClasses("stuberrors", List("A"))
+ }
+}