Skip to content

Commit d09dbd6

Browse files
Fix SimplifyTests
1 parent ea7a578 commit d09dbd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/test/dotty/tools/dotc/SimplifyTests.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ trait SimplifyEquivalences { self: DottyBytecodeTest =>
7777
""",
7878
"""
7979
|val t = Tuple2(1, "s")
80-
|print(new Some(new Tuple2(t._1, t._2)))
80+
|print({
81+
| Tuple2 // TODO: teach Simplify that initializing Tuple2 has no effect
82+
| new Some(new Tuple2(t._1, t._2))
83+
|})
8184
""")
8285

8386
@Test def constantFold =

0 commit comments

Comments
 (0)