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 c5c8ef5 commit 973aedaCopy full SHA for 973aeda
joern-cli/frontends/javasrc2cpg/src/test/scala/io/joern/javasrc2cpg/querying/VarDeclTests.scala
@@ -206,6 +206,17 @@ class VarDeclTests extends JavaSrcCode2CpgFixture {
206
.head shouldBe "org.apache.flink.streaming.connectors.kafka.FlinkKafkaProducer.<init>:<unresolvedSignature>(3)"
207
}
208
209
+ "parse enums correctly" in {
210
+ val cpg = code("""
211
+ |public enum Color {
212
+ | RED,
213
+ | GREEN,
214
+ | BLUE
215
+ |}
216
+ |""".stripMargin).withConfig(Config().withKeepTypeArguments(true))
217
+
218
+ cpg.typeDecl("Color").code.head shouldBe "public enum Color"
219
+ }
220
221
222
0 commit comments