diff options
Diffstat (limited to 'tests/pos/inferred.scala')
-rw-r--r-- | tests/pos/inferred.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pos/inferred.scala b/tests/pos/inferred.scala index 76f578a30..295cc9b49 100644 --- a/tests/pos/inferred.scala +++ b/tests/pos/inferred.scala @@ -6,4 +6,10 @@ object Inferred { val y = foo("abc") + def bar[U](xs: List[U]): List[U] = xs + + val n = Nil + + val nn = bar(Nil) + } |