Transpiled version (13021L) is out of date.
1 | svoid test_tok_selfType() { |
2 | testTranspilationFunction2 tok_selfType( |
3 | "class Bla<A> { selfType x() { this; } }", |
4 | "class Bla<A> { Bla<A> x() { this; } }", |
5 | "class Bla<A extends B> { selfType x() { this; } }", |
6 | "class Bla<A extends B> { Bla<A> x() { this; } }", |
7 | "interface BB { selfType x(); }", |
8 | "interface BB { BB x(); }", |
9 | "class Blume { Class x = selfType.class; Class y() { ret selfType.class; } }", |
10 | "class Blume { Class x = Blume.class; Class y() { ret Blume.class; } }", |
11 | "class Blume<A> { Class x = selfType.class; Class y() { ret selfType.class; } }", |
12 | "class Blume<A> { Class x = Blume.class; Class y() { ret Blume.class; } }", |
13 | "enum BB { a; selfType x(); }", |
14 | "enum BB { a; BB x(); }", |
15 | "class Bla<A> { selfType x() { new selfType(); } }", |
16 | "class Bla<A> { Bla<A> x() { new Bla<A>(); } }", |
17 | "class Bla<A extends Comparable<A>> { selfType x() { new selfType(); } }", |
18 | "class Bla<A extends Comparable<A>> { Bla<A> x() { new Bla<A>(); } }", |
19 | "class HelloMe { selfType x(O o) { ret (selfType) o; } }", |
20 | "class HelloMe { HelloMe x(O o) { ret (HelloMe) o; } }", |
21 | "class A { A a; { if (a cast selfType) a.x(); } }", |
22 | "class A { A a; { if (a cast A) a.x(); } }", |
23 | ); |
24 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, ekrmjmnbrukm, elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1033169 |
Snippet name: | test_tok_selfType |
Eternal ID of this version: | #1033169/16 |
Text MD5: | fdb7bd66f302f0dad1d95b892ebc3347 |
Author: | stefan |
Category: | javax / transpiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-02-21 16:53:21 |
Source code size: | 1279 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 196 / 416 |
Version history: | 15 change(s) |
Referenced in: | [show references] |