Fix an infinite loop in pretty-printing

PiperOrigin-RevId: 397232971
diff --git a/java/com/google/turbine/tree/Pretty.java b/java/com/google/turbine/tree/Pretty.java
index 6838530..1c758cb 100644
--- a/java/com/google/turbine/tree/Pretty.java
+++ b/java/com/google/turbine/tree/Pretty.java
@@ -218,7 +218,7 @@
 
   @Override
   public @Nullable Void visitClassLiteral(ClassLiteral classLiteral, @Nullable Void input) {
-    classLiteral.accept(this, input);
+    classLiteral.type().accept(this, input);
     append(".class");
     return null;
   }
diff --git a/javatests/com/google/turbine/parse/ExpressionParserTest.java b/javatests/com/google/turbine/parse/ExpressionParserTest.java
index 12577fe..7b5889b 100644
--- a/javatests/com/google/turbine/parse/ExpressionParserTest.java
+++ b/javatests/com/google/turbine/parse/ExpressionParserTest.java
@@ -132,6 +132,9 @@
           {
             "A ? B : C ? D : E;", "(A ? B : (C ? D : E))",
           },
+          {
+            "Foo.class", "Foo.class",
+          },
         });
   }