diff --git a/src/test/resources/bytecode/javFiles/Y.jav b/src/test/resources/bytecode/javFiles/Y.jav index 3c3e204d..085bfd3c 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 {