aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/dotc/tests.scala1
-rw-r--r--tests/pos/sammy_poly.scala1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index 85a3e317a..9cc64c725 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -110,6 +110,7 @@ class tests extends CompilerTest {
@Test def neg_i50_volatile = compileFile(negDir, "i50-volatile", xerrors = 6)
@Test def neg_t0273_doubledefs = compileFile(negDir, "t0273", xerrors = 1)
@Test def neg_zoo = compileFile(negDir, "zoo", xerrors = 12)
+ @Test def neg_sam = compileFile(negDir, "sammy_poly", xerrors = 1)
// TODO: this test file doesn't exist (anymore?), remove?
// @Test def neg_t1192_legalPrefix = compileFile(negDir, "t1192", xerrors = 1)
diff --git a/tests/pos/sammy_poly.scala b/tests/pos/sammy_poly.scala
index ff20b5c9c..3291493c5 100644
--- a/tests/pos/sammy_poly.scala
+++ b/tests/pos/sammy_poly.scala
@@ -2,6 +2,7 @@
trait F1[T, U] { def apply(x: T): U }
class T {
+ import T._
// NOTE: the f(x) desugaring for now assumes the single abstract method is called 'apply'
def app1[T, U](x: T)(f: F1[T, U]): U = f(x)
def app2[T, U](x: T)(f: F2[T, U]): U = f(x)