aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-23 13:41:38 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-23 15:55:15 +0200
commitdee11526fc5f917589a5148b776de74752f4d57a (patch)
treecfdfa63e230371e6e3da9cca19689749a29e46cd /tests/pos
parentc01389d170bb0f1c8a925a25c145396007a75106 (diff)
downloaddotty-dee11526fc5f917589a5148b776de74752f4d57a.tar.gz
dotty-dee11526fc5f917589a5148b776de74752f4d57a.tar.bz2
dotty-dee11526fc5f917589a5148b776de74752f4d57a.zip
Add a neg test for SAMs.
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/sammy_poly.scala1
1 files changed, 1 insertions, 0 deletions
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)