Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1023722 // test_findBackRefs

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Compilation Failed (11784L/79K).

1  
concept Bla {
2  
  new Ref<Bla> ref;
3  
}
4  
5  
svoid test_findBackRefs() {
6  
  new Concepts cc;
7  
  Bla a = cnew(cc, Bla);
8  
  Bla b = cnew(cc, Bla, ref := a);
9  
  assertEqualsVerbose(ll(b), findBackRefs Bla(a));
10  
  cset(b, ref := null);
11  
  assertEqualsVerbose(ll(), findBackRefs Bla(a));
12  
  cset(a, ref := b);
13  
  assertEqualsVerbose(ll(a), findBackRefs Bla(b));
14  
  cdelete(a);
15  
  assertEqualsVerbose(ll(), findBackRefs Bla(b));
16  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023722
Snippet name: test_findBackRefs
Eternal ID of this version: #1023722/5
Text MD5: 029e38641655f9f7981ea8d28b3f6185
Transpilation MD5: b7eb2d94c68cab8e98a5a3b004d0f30b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-04 21:18:56
Source code size: 421 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 203 / 295
Version history: 4 change(s)
Referenced in: [show references]