val in java, including tests and javac resolution utilities.

This commit is contained in:
Reinier Zwitserloot committed 2010-11-03 00:42:58 +01:00
1 parent d9ba2a191a
commit f1cf083890
16 files changed
+941

No files matched your search

@@ -0,0 +1,26 @@
public class ValSimple {
private String field = "field";
private short field2 = 5;
private String method() {
return "method";
}
private double method2() {
return 2.0;
}
private void testVal(String param) {
val fieldV = field;
val methodV = method();
val paramV = param;
val valOfVal = fieldV;
val operatorV = fieldV + valOfVal;
val fieldW = field2;
val methodW = method2();
byte localVar = 3;
val operatorW = fieldW + localVar;
}
}