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 d9d5670 commit e3388caCopy full SHA for e3388ca
compiler/src/dotty/tools/dotc/transform/Erasure.scala
@@ -234,9 +234,7 @@ object Erasure extends TypeTestsCasts{
234
* in ExtensionMethods#transform.
235
*/
236
def cast(tree: Tree, pt: Type)(implicit ctx: Context): Tree = {
237
- // TODO: The commented out assertion fails for tailcall/t6574.scala
238
- // Fix the problem and enable the assertion.
239
- // assert(!pt.isInstanceOf[SingletonType], pt)
+ assert(!pt.isInstanceOf[SingletonType], pt)
240
if (pt isRef defn.UnitClass) unbox(tree, pt)
241
else (tree.tpe, pt) match {
242
case (JavaArrayType(treeElem), JavaArrayType(ptElem))
0 commit comments