Java: Add test for NullLiteral

This commit is contained in:
Marcono1234
2021-09-04 21:24:16 +02:00
parent bb6e6f4808
commit 924b7320bc
4 changed files with 30 additions and 0 deletions

View File

@@ -734,6 +734,7 @@ class StringLiteral extends Literal, @stringliteral {
/** The null literal, written `null`. */
class NullLiteral extends Literal, @nullliteral {
// Override these predicates because the inherited ones have no result
override string getLiteral() { result = "null" }
override string getValue() { result = "null" }