diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-07 02:21:50 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-07 02:21:50 -0500 |
commit | c6b9a480879c101028b20b9cc8716b8ffa773630 (patch) | |
tree | fff15c1d6595455f6994f5793b63b08c5bf24d4a /examples/scalafmt-example/src/Main.scala | |
parent | c89f87c9c9a0c7b256f225e37c55cb34f060aa6c (diff) | |
parent | fd849d293448d55c6bcb6f8440f44838b51fc860 (diff) | |
download | cbt-c6b9a480879c101028b20b9cc8716b8ffa773630.tar.gz cbt-c6b9a480879c101028b20b9cc8716b8ffa773630.tar.bz2 cbt-c6b9a480879c101028b20b9cc8716b8ffa773630.zip |
Merge remote-tracking branch 'origin/master' into integrate-eval
Diffstat (limited to 'examples/scalafmt-example/src/Main.scala')
-rw-r--r-- | examples/scalafmt-example/src/Main.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/scalafmt-example/src/Main.scala b/examples/scalafmt-example/src/Main.scala new file mode 100644 index 0000000..465e27a --- /dev/null +++ b/examples/scalafmt-example/src/Main.scala @@ -0,0 +1,16 @@ +import scala.concurrent.{ Await, Future } +import scala.concurrent.duration._ + +object Main extends App { + println("fooo") + val futureRes = Await.result(Future.successful(1), 5.seconds) + List(1, 2, 4, 5, 6) match { + case h :: _ ⇒ println("not empty list") + case Nil ⇒ println("empty list") + } + + List(1 → 2, 2 → 3, 3 → 4) match { + case (1, 2) :: _ ⇒ 90 → 1 + case (22, 44) :: _ ⇒ 1 → 150 + } +} |