diff options
Diffstat (limited to 'test/files/pos/sammy_infer_argtype_subtypes.scala')
-rw-r--r-- | test/files/pos/sammy_infer_argtype_subtypes.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/sammy_infer_argtype_subtypes.scala b/test/files/pos/sammy_infer_argtype_subtypes.scala new file mode 100644 index 0000000000..63966f879e --- /dev/null +++ b/test/files/pos/sammy_infer_argtype_subtypes.scala @@ -0,0 +1,6 @@ +trait Fun[A, B] { def apply(a: A): B } + +class SamInferResult { + def foreach[U](f: Fun[String, U]): U = ??? + def foo = foreach(println) +}
\ No newline at end of file |