@@ -60,58 +60,58 @@ abstract class SimplifyTests(val optimise: Boolean) extends DottyBytecodeTest {
60
60
|println(anotherone)
61
61
""" )
62
62
63
- @ Test def inlineCaseIntrinsicsDottyApply =
64
- check(
65
- source = " CC.apply(1, 2)" ,
66
- expected = " new CC(1, 2)" ,
67
- shared = " case class CC(i: Int, j: Int)" )
63
+ // @Test def inlineCaseIntrinsicsDottyApply =
64
+ // check(
65
+ // source = "CC.apply(1, 2)",
66
+ // expected = "new CC(1, 2)",
67
+ // shared = "case class CC(i: Int, j: Int)")
68
68
69
69
@ Test def inlineCaseIntrinsicsScalacApply =
70
70
check(" ::.apply(1, Nil)" , " new ::(1, Nil)" )
71
71
72
- @ Test def inlineCaseIntrinsicsScalacUnapply =
73
- check(
74
- """
75
- |val t = Tuple2(1, "s")
76
- |print(Tuple2.unapply(t))
77
- """ ,
78
- """
79
- |print(new Some(new Tuple2(1, "s")))
80
- """ )
81
-
82
- @ Test def dropNoEffects =
83
- check(
84
- """
85
- |val a = "wow"
86
- |print(1)
87
- """ ,
88
- """
89
- |print(1)
90
- """ )
91
-
92
- @ Test def dropNoEffectsTuple =
93
- check(" new Tuple2(1, 3)" , " " )
94
-
95
- @ Test def inlineLocalObjects =
96
- check(
97
- """
98
- |val t = new Tuple2(1, 3)
99
- |print(t._1 + t._2)
100
- """ ,
101
- """
102
- |val i = 3
103
- |print(1 + i) // Prevents typer from constant folding 1 + 3 to 4
104
- """ )
105
-
106
- @ Test def inlineOptions =
107
- check(
108
- """
109
- |val sum = Some("s")
110
- |println(sum.isDefined)
111
- """ ,
112
- """
113
- |println(true)
114
- """ )
72
+ // @Test def inlineCaseIntrinsicsScalacUnapply =
73
+ // check(
74
+ // """
75
+ // |val t = Tuple2(1, "s")
76
+ // |print(Tuple2.unapply(t))
77
+ // """,
78
+ // """
79
+ // |print(new Some(new Tuple2(1, "s")))
80
+ // """)
81
+
82
+ // @Test def dropNoEffects =
83
+ // check(
84
+ // """
85
+ // |val a = "wow"
86
+ // |print(1)
87
+ // """,
88
+ // """
89
+ // |print(1)
90
+ // """)
91
+ //
92
+ // @Test def dropNoEffectsTuple =
93
+ // check("new Tuple2(1, 3)", "")
94
+
95
+ // @Test def inlineLocalObjects =
96
+ // check(
97
+ // """
98
+ // |val t = new Tuple2(1, 3)
99
+ // |print(t._1 + t._2)
100
+ // """,
101
+ // """
102
+ // |val i = 3
103
+ // |print(1 + i) // Prevents typer from constant folding 1 + 3 to 4
104
+ // """)
105
+
106
+ // @Test def inlineOptions =
107
+ // check(
108
+ // """
109
+ // |val sum = Some("s")
110
+ // |println(sum.isDefined)
111
+ // """,
112
+ // """
113
+ // |println(true)
114
+ // """)
115
115
116
116
117
117
/*
@@ -164,33 +164,33 @@ abstract class SimplifyTests(val optimise: Boolean) extends DottyBytecodeTest {
164
164
|print(8)
165
165
""" )
166
166
167
- @ Test def localDefinitionElimination =
168
- check(
169
- """
170
- |lazy val foo = 1
171
- |def bar = 2
172
- |val baz = 3
173
- """ ,
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
- |class Foo {
189
- | lazy val foo = 1
190
- | def bar = 2
191
- | val baz = 3
192
- |}
193
- """ )
167
+ // @Test def localDefinitionElimination =
168
+ // check(
169
+ // """
170
+ // |lazy val foo = 1
171
+ // |def bar = 2
172
+ // |val baz = 3
173
+ // """,
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
+ // |class Foo {
189
+ // | lazy val foo = 1
190
+ // | def bar = 2
191
+ // | val baz = 3
192
+ // |}
193
+ // """)
194
194
195
195
196
196
// @Test def listPatmapExample =
0 commit comments