aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/constants.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-12-17 12:35:26 +0100
committerMartin Odersky <odersky@gmail.com>2014-12-17 12:35:30 +0100
commita098fd360a3ef2d1eac86de695412054ec558f6e (patch)
tree30604595891a8e709bcae2314b79645e7ef52255 /tests/pos/constants.scala
parent3a68e50073e9c4cef06c44e1dec7e3e492eb3274 (diff)
downloaddotty-a098fd360a3ef2d1eac86de695412054ec558f6e.tar.gz
dotty-a098fd360a3ef2d1eac86de695412054ec558f6e.tar.bz2
dotty-a098fd360a3ef2d1eac86de695412054ec558f6e.zip
Fix #300: Make literals have the same constants as their types.
Diffstat (limited to 'tests/pos/constants.scala')
-rw-r--r--tests/pos/constants.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pos/constants.scala b/tests/pos/constants.scala
new file mode 100644
index 000000000..ca767d27d
--- /dev/null
+++ b/tests/pos/constants.scala
@@ -0,0 +1,6 @@
+object Test {
+
+ val x: Double = 2
+ val y: Byte = 3
+
+}