From 56c360104b16795703b965d2ba134ae8e9225bc3 Mon Sep 17 00:00:00 2001 From: Daniel Holle Date: Wed, 30 Aug 2023 11:28:17 +0200 Subject: [PATCH] TripleTest --- resources/AllgemeinTest/TripleTest.jav | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 resources/AllgemeinTest/TripleTest.jav diff --git a/resources/AllgemeinTest/TripleTest.jav b/resources/AllgemeinTest/TripleTest.jav new file mode 100644 index 00000000..a0560b60 --- /dev/null +++ b/resources/AllgemeinTest/TripleTest.jav @@ -0,0 +1,19 @@ +class Triple { + 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()); + } +} \ No newline at end of file