aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-02-28 18:17:27 +0000
committerMichael Williamson <mike@zwobble.org>2016-02-28 18:17:27 +0000
commitd3e9fb5ce2a13bdb0ee39e9625494e8c5d2a9383 (patch)
treeec4da4df3e0c4c18ab416930b79daac55e5795cb /src/test/resources/java
parente0de2f39fc7e0b228cf9476f0a86cbd41d93650f (diff)
Modify lambda with this capture test to run on C# backend
Diffstat (limited to 'src/test/resources/java')
-rw-r--r--src/test/resources/java/lambda-this-capture/com/example/IntFunction.java5
-rw-r--r--src/test/resources/java/lambda-this-capture/com/example/Lambda.java2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/test/resources/java/lambda-this-capture/com/example/IntFunction.java b/src/test/resources/java/lambda-this-capture/com/example/IntFunction.java
new file mode 100644
index 0000000..d1e041e
--- /dev/null
+++ b/src/test/resources/java/lambda-this-capture/com/example/IntFunction.java
@@ -0,0 +1,5 @@
+package com.example;
+
+public interface IntFunction {
+ int apply(int value);
+}
diff --git a/src/test/resources/java/lambda-this-capture/com/example/Lambda.java b/src/test/resources/java/lambda-this-capture/com/example/Lambda.java
index b4aadbf..0438f8c 100644
--- a/src/test/resources/java/lambda-this-capture/com/example/Lambda.java
+++ b/src/test/resources/java/lambda-this-capture/com/example/Lambda.java
@@ -14,7 +14,7 @@ public class Lambda {
}
private int run() {
- Function<Integer, Integer> function = value -> value * factor;
+ IntFunction function = value -> value * factor;
return function.apply(21);
}
}