File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
dataflow/codeql/dataflow/internal Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
private import codeql.util.Unit
8
8
private import codeql.util.Option
9
+ private import codeql.util.Boolean
9
10
private import codeql.dataflow.DataFlow
10
11
11
12
module MakeImpl< InputSig Lang> {
@@ -1183,7 +1184,9 @@ module MakeImpl<InputSig Lang> {
1183
1184
string toString ( ) ;
1184
1185
}
1185
1186
1186
- class Ap ;
1187
+ class Ap {
1188
+ string toString ( ) ;
1189
+ }
1187
1190
1188
1191
class ApNil extends Ap ;
1189
1192
@@ -2432,9 +2435,7 @@ module MakeImpl<InputSig Lang> {
2432
2435
2433
2436
class Typ = Unit ;
2434
2437
2435
- class Ap extends boolean {
2436
- Ap ( ) { this in [ true , false ] }
2437
- }
2438
+ class Ap = Boolean ;
2438
2439
2439
2440
class ApNil extends Ap {
2440
2441
ApNil ( ) { this = false }
Original file line number Diff line number Diff line change 5
5
*
6
6
* As opposed to `boolean`, this type does not require explicit binding.
7
7
*/
8
- class Boolean extends boolean {
8
+ final class Boolean extends FinalBoolean {
9
9
Boolean ( ) { this = [ true , false ] }
10
+
11
+ /** Returns either "true" or "false". */
12
+ // reimplement to avoid explicit binding
13
+ string toString ( ) { result = super .toString ( ) }
10
14
}
15
+
16
+ final private class FinalBoolean = boolean ;
You can’t perform that action at this time.
0 commit comments