diff options
Diffstat (limited to 'test/files/neg/deadline-inf-illegal.scala')
-rw-r--r-- | test/files/neg/deadline-inf-illegal.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/deadline-inf-illegal.scala b/test/files/neg/deadline-inf-illegal.scala new file mode 100644 index 0000000000..942cea7014 --- /dev/null +++ b/test/files/neg/deadline-inf-illegal.scala @@ -0,0 +1,8 @@ +import concurrent.duration.{ Deadline, Duration } + +class T { + val d: Duration = Duration.Zero + d.fromNow + Deadline.now + d + Deadline.now - d +} |