summaryrefslogtreecommitdiff
path: root/typecheck/tests
diff options
context:
space:
mode:
Diffstat (limited to 'typecheck/tests')
-rw-r--r--typecheck/tests/Operator.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/typecheck/tests/Operator.java b/typecheck/tests/Operator.java
new file mode 100644
index 0000000..732c905
--- /dev/null
+++ b/typecheck/tests/Operator.java
@@ -0,0 +1,15 @@
+class test01{
+ public static void main(String[] a){
+ System.out.println(new Operator().compute());
+ }
+}
+
+class Operator{
+
+ boolean result;
+
+ public int compute(){
+ result = true && false;
+ return 0;
+ }
+}