package test import org.junit.{Assert, Test} class SamplePhaseTest extends DottyTest { // Disabled, awaiting resolution: @Test def testTypechekingSimpleClass = checkCompile("frontend", "class A{}") { (tree, context) => implicit val ctx = context Assert.assertTrue("can typecheck simple class", tree.toString == "PackageDef(Ident(),List(TypeDef(Modifiers(,,List()),A,Template(DefDef(Modifiers(,,List()),,List(),List(List()),TypeTree[TypeRef(ThisType(module class scala),Unit)],EmptyTree),List(Apply(Select(New(TypeTree[TypeRef(ThisType(module class lang),Object)]),),List())),ValDef(Modifiers(private,,List()),_,EmptyTree,EmptyTree),List()))))" ) } }