diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/implicit-infix-ops.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/pos/implicit-infix-ops.scala b/test/files/pos/implicit-infix-ops.scala new file mode 100644 index 0000000000..ef4512fa6b --- /dev/null +++ b/test/files/pos/implicit-infix-ops.scala @@ -0,0 +1,7 @@ +object Test { + import Ordering.Implicits._ + import Numeric.Implicits._ + + def f1[T: Numeric](x: T, y: T, z: T) = x + y + z + def f2[T: Ordering](x: T, y: T, z: T) = if (x < y) (z > y) else (x < z) +} |