File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
ruby/ql/test/library-tests/modules Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ getTarget
186
186
| calls.rb:488:1:488:31 | call to singleton | calls.rb:481:5:483:7 | singleton |
187
187
| calls.rb:494:1:494:32 | call to singleton | calls.rb:481:5:483:7 | singleton |
188
188
| calls.rb:501:1:501:32 | call to singleton | calls.rb:481:5:483:7 | singleton |
189
+ | calls.rb:504:1:504:13 | call to singleton | calls.rb:481:5:483:7 | singleton |
189
190
| calls.rb:507:1:507:13 | call to singleton | calls.rb:481:5:483:7 | singleton |
190
191
| calls.rb:516:5:516:35 | call to include | calls.rb:108:5:110:7 | include |
191
192
| calls.rb:519:9:519:35 | call to puts | calls.rb:102:5:102:30 | puts |
Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ module ExtendSingletonMethod3
501
501
ExtendSingletonMethod3 . singleton
502
502
503
503
foo = "hello"
504
-
504
+ foo . singleton # NoMethodError
505
505
foo . extend ExtendSingletonMethod
506
506
507
507
foo . singleton
Original file line number Diff line number Diff line change @@ -1231,6 +1231,8 @@ enclosingModule
1231
1231
| calls.rb:503:1:503:13 | ... = ... | calls.rb:1:1:543:28 | calls.rb |
1232
1232
| calls.rb:503:7:503:13 | "hello" | calls.rb:1:1:543:28 | calls.rb |
1233
1233
| calls.rb:503:8:503:12 | hello | calls.rb:1:1:543:28 | calls.rb |
1234
+ | calls.rb:504:1:504:3 | foo | calls.rb:1:1:543:28 | calls.rb |
1235
+ | calls.rb:504:1:504:13 | call to singleton | calls.rb:1:1:543:28 | calls.rb |
1234
1236
| calls.rb:505:1:505:3 | foo | calls.rb:1:1:543:28 | calls.rb |
1235
1237
| calls.rb:505:1:505:32 | call to extend | calls.rb:1:1:543:28 | calls.rb |
1236
1238
| calls.rb:505:12:505:32 | ExtendSingletonMethod | calls.rb:1:1:543:28 | calls.rb |
You can’t perform that action at this time.
0 commit comments