// scalac: -Xfatal-warnings -release 8
// javaVersion: 9+

class C {
  def f = new java.time.Instant
}
object Test extends App {
  println(new C().f)
}

// scalac: -Xfatal-warnings -release:8
// javaVersion: 9+

class C {
  def f = new java.time.Instant
}
object Test extends App {
  println(new C().f)
}

Fix compiler flag syntax in test file
Fix compiler flag syntax in test file
