From 37f8f2e1e09736c9e018d062c8efaa09a1c69953 Mon Sep 17 00:00:00 2001 From: "pl@gohorb.ba-horb.de" Date: Thu, 19 Sep 2019 13:57:49 +0200 Subject: [PATCH] modified: ../../bytecode/javFiles/Y.jav Anwendung von Y eingefuegt. --- src/test/resources/bytecode/javFiles/Y.jav | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/test/resources/bytecode/javFiles/Y.jav b/src/test/resources/bytecode/javFiles/Y.jav index 3c3e204d0..085bfd3c9 100644 --- a/src/test/resources/bytecode/javFiles/Y.jav +++ b/src/test/resources/bytecode/javFiles/Y.jav @@ -8,8 +8,21 @@ class Y { y = f -> t -> f.apply(y.apply(f)).apply(t); //factorial = y.apply(f -> n -> { if (n == 0) return 1; else return n * f.apply(n - 1); }); } + + getY() { + return y; + } } +class fac1 { + factorial; + + fac1() { + var y; + y = new Y().getY(); + factorial = y.apply(f -> n -> { if (n == 0) return 1; else return n * f.apply(n - 1); }); + } +} /* ergibt Parse-Error class fac1 {