Transpiled version (13021L) is out of date.
svoid test_tok_selfType() { testTranspilationFunction2 tok_selfType( "class Bla<A> { selfType x() { this; } }", "class Bla<A> { Bla<A> x() { this; } }", "class Bla<A extends B> { selfType x() { this; } }", "class Bla<A extends B> { Bla<A> x() { this; } }", "interface BB { selfType x(); }", "interface BB { BB x(); }", "class Blume { Class x = selfType.class; Class y() { ret selfType.class; } }", "class Blume { Class x = Blume.class; Class y() { ret Blume.class; } }", "class Blume<A> { Class x = selfType.class; Class y() { ret selfType.class; } }", "class Blume<A> { Class x = Blume.class; Class y() { ret Blume.class; } }", "enum BB { a; selfType x(); }", "enum BB { a; BB x(); }", "class Bla<A> { selfType x() { new selfType(); } }", "class Bla<A> { Bla<A> x() { new Bla<A>(); } }", "class Bla<A extends Comparable<A>> { selfType x() { new selfType(); } }", "class Bla<A extends Comparable<A>> { Bla<A> x() { new Bla<A>(); } }", "class HelloMe { selfType x(O o) { ret (selfType) o; } }", "class HelloMe { HelloMe x(O o) { ret (HelloMe) o; } }", "class A { A a; { if (a cast selfType) a.x(); } }", "class A { A a; { if (a cast A) a.x(); } }", ); }
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: | 194 / 412 |
Version history: | 15 change(s) |
Referenced in: | [show references] |