Data flow: Use Boolean class

This commit is contained in:
Tom Hvitved
2023-12-13 20:29:39 +01:00
parent 27be5ba14b
commit 5a426d1800
2 changed files with 12 additions and 5 deletions

View File

@@ -5,6 +5,12 @@
*
* As opposed to `boolean`, this type does not require explicit binding.
*/
class Boolean extends boolean {
final class Boolean extends FinalBoolean {
Boolean() { this = [true, false] }
/** Returns either "true" or "false". */
// reimplement to avoid explicit binding
string toString() { result = super.toString() }
}
final private class FinalBoolean = boolean;