forked from JavaTX/JavaCompilerCore
TripleTest
This commit is contained in:
parent
e414da3369
commit
56c360104b
19
resources/AllgemeinTest/TripleTest.jav
Normal file
19
resources/AllgemeinTest/TripleTest.jav
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
class Triple<U, T, S> {
|
||||||
|
U a;
|
||||||
|
T b;
|
||||||
|
S c;
|
||||||
|
|
||||||
|
Triple(U x, T y, S z) {
|
||||||
|
a = x; b = y; c = z;
|
||||||
|
}
|
||||||
|
|
||||||
|
U fst() { return a; }
|
||||||
|
T snd() { return b; }
|
||||||
|
S thrd() { return c; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class TripleTest {
|
||||||
|
m() {
|
||||||
|
return new Triple<>(m().thrd(), m().thrd(), m().thrd());
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user