diff options
author | Martin Odersky <odersky@gmail.com> | 2013-05-12 15:44:16 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-05-12 15:44:16 +0200 |
commit | 805d116bd6d504b36db06568d0a160e41cfabfb7 (patch) | |
tree | 80c2fb3d55262cc121da40d531a290dfdb99206f /test/test/positiontest.sc | |
parent | c863dd63af8e8e93582841fab4926b5899e0e285 (diff) | |
download | dotty-805d116bd6d504b36db06568d0a160e41cfabfb7.tar.gz dotty-805d116bd6d504b36db06568d0a160e41cfabfb7.tar.bz2 dotty-805d116bd6d504b36db06568d0a160e41cfabfb7.zip |
new tests and worksheets
Diffstat (limited to 'test/test/positiontest.sc')
-rw-r--r-- | test/test/positiontest.sc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test/positiontest.sc b/test/test/positiontest.sc new file mode 100644 index 000000000..11cc54dbe --- /dev/null +++ b/test/test/positiontest.sc @@ -0,0 +1,14 @@ +package test + +import dotty.tools.dotc.util._ +import Positions._ + +object positiontest { + println("Welcome to the Scala worksheet") //> Welcome to the Scala worksheet + + val p = Position(0, 1, 0) //> p : dotty.tools.dotc.util.Positions.Position = [0..1] + val p2 = Position(0, 2) //> p2 : dotty.tools.dotc.util.Positions.Position = [0..2] + val p3 = Position(1, 0) //> p3 : dotty.tools.dotc.util.Positions.Position = [no position] + p3.isSynthetic //> res0: Boolean = false + NoPosition.isSynthetic //> res1: Boolean = false +}
\ No newline at end of file |