We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d544507 commit 2b7479fCopy full SHA for 2b7479f
compiler/test/dotty/tools/dotc/SimplifyTests.scala
@@ -174,6 +174,25 @@ abstract class SimplifyTests(val optimise: Boolean) extends DottyBytecodeTest {
174
"""
175
""")
176
177
+ @Test def localDefinitionNoElimination =
178
+ check(
179
+ """
180
+ |val j = 0 // dummy
181
+ |class Foo {
182
+ | lazy val foo = 1
183
+ | def bar = 2
184
+ | val baz = 3
185
+ |}
186
+ """,
187
188
189
190
191
192
193
+ """)
194
+
195
196
// @Test def listPatmapExample =
197
// check(
198
// """
0 commit comments