Skip to content

Commit 571f975

Browse files
authored
Merge pull request scala#6463 from milessabin/topic/si-10779
Added test of literal type folding
2 parents 77db1d2 + 1fd4768 commit 571f975

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/files/pos/t10779.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
object Test {
2+
final val x: 1 = 1
3+
final val y: 2 = 2
4+
x + 2: 3 //ok
5+
1 + y: 3 //ok
6+
x + y: 3 //ok
7+
}

0 commit comments

Comments
 (0)