diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-23 13:41:38 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-23 15:55:15 +0200 |
commit | dee11526fc5f917589a5148b776de74752f4d57a (patch) | |
tree | cfdfa63e230371e6e3da9cca19689749a29e46cd /tests/pos/sammy_poly.scala | |
parent | c01389d170bb0f1c8a925a25c145396007a75106 (diff) | |
download | dotty-dee11526fc5f917589a5148b776de74752f4d57a.tar.gz dotty-dee11526fc5f917589a5148b776de74752f4d57a.tar.bz2 dotty-dee11526fc5f917589a5148b776de74752f4d57a.zip |
Add a neg test for SAMs.
Diffstat (limited to 'tests/pos/sammy_poly.scala')
-rw-r--r-- | tests/pos/sammy_poly.scala | 1 |
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) |