Skip to content

Commit 9e2b812

Browse files
authored
Merge pull request #14 from lolgab/add-feature-warnings
Add -feature scalacOption and fix warnings
2 parents 7fca336 + d760e6d commit 9e2b812

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

build.sbt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ lazy val commonSettings = Seq(
2525
organization := "dev.whaling",
2626
version := "0.1.1-SNAPSHOT",
2727
scalaVersion := "2.11.12",
28+
scalacOptions ++= Seq(
29+
"-feature"
30+
),
2831
skip in publish := true,
2932
skip in publishLocal := true
3033
)

examples/timer/main.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ object Main {
66
implicit val ec:ExecutionContext = EventLoop
77

88
def main(args:Array[String]):Unit = {
9-
Timer.delay(3 seconds).flatMap { _ =>
9+
Timer.delay(3.seconds).flatMap { _ =>
1010
println("beep")
11-
Timer.delay(2 seconds)
11+
Timer.delay(2.seconds)
1212
}.flatMap { _ =>
1313
println("boop")
14-
Timer.delay(1 second)
14+
Timer.delay(1.second)
1515
}.onComplete { _ =>
1616
println("done")
1717
}

0 commit comments

Comments
 (0)