diff options
author | Reto Hablützel <rh@nezasa.com> | 2016-12-04 16:48:22 +0100 |
---|---|---|
committer | Reto Hablützel <rh@nezasa.com> | 2016-12-04 16:52:00 +0100 |
commit | 4835d0455f6f4777d168901e8719b55bbd389baa (patch) | |
tree | 3e7b5e8ecd9ac7a6f8b94ce9e66da56598877b76 /tests/repl | |
parent | 9ceed9213497597de8895c83bdf0cc4d5597b150 (diff) | |
download | dotty-4835d0455f6f4777d168901e8719b55bbd389baa.tar.gz dotty-4835d0455f6f4777d168901e8719b55bbd389baa.tar.bz2 dotty-4835d0455f6f4777d168901e8719b55bbd389baa.zip |
handle ConstantType in TypeComparer
Diffstat (limited to 'tests/repl')
-rw-r--r-- | tests/repl/def.check | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/repl/def.check b/tests/repl/def.check index 498ecb282..9d6538354 100644 --- a/tests/repl/def.check +++ b/tests/repl/def.check @@ -6,4 +6,8 @@ scala> def baz() = 2 def baz(): Int scala> def qux(): Int = 2 def qux(): Int +scala> def id(x: 4): 4 = x +def id(x: 4.type): Int(4) +scala> id(4) +val res0: Int = 4 scala> :quit |